diff options
Diffstat (limited to 'arch/arm/mach-tegra/board-whistler-panel.c')
-rw-r--r-- | arch/arm/mach-tegra/board-whistler-panel.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-whistler-panel.c b/arch/arm/mach-tegra/board-whistler-panel.c index 9cc797739149..fdf3960d4684 100644 --- a/arch/arm/mach-tegra/board-whistler-panel.c +++ b/arch/arm/mach-tegra/board-whistler-panel.c @@ -25,6 +25,7 @@ #include <asm/mach-types.h> #include <linux/platform_device.h> #include <linux/earlysuspend.h> +#include <linux/kernel.h> #include <linux/pwm_backlight.h> #include <linux/tegra_pwm_bl.h> #include <mach/nvhost.h> @@ -33,6 +34,7 @@ #include <mach/iomap.h> #include <mach/dc.h> #include <mach/fb.h> +#include <mach/tegra_cpufreq.h> #include "devices.h" #include "gpio-names.h" @@ -299,6 +301,13 @@ static void whistler_panel_early_suspend(struct early_suspend *h) unsigned i; for (i = 0; i < num_registered_fb; i++) fb_blank(registered_fb[i], FB_BLANK_POWERDOWN); +#ifdef CONFIG_CPU_FREQ + cpufreq_save_default_governor(); + cpufreq_set_conservative_governor(); + cpufreq_set_conservative_governor_param( + SET_CONSERVATIVE_GOVERNOR_UP_THRESHOLD, + SET_CONSERVATIVE_GOVERNOR_DOWN_THRESHOLD); +#endif } static void whistler_panel_late_resume(struct early_suspend *h) @@ -306,6 +315,9 @@ static void whistler_panel_late_resume(struct early_suspend *h) unsigned i; for (i = 0; i < num_registered_fb; i++) fb_blank(registered_fb[i], FB_BLANK_UNBLANK); +#ifdef CONFIG_CPU_FREQ + cpufreq_restore_default_governor(); +#endif } #endif |