summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-whistler-panel.c
diff options
context:
space:
mode:
authorPuneet Saxena <puneets@nvidia.com>2012-05-30 16:28:31 +0530
committerSimone Willett <swillett@nvidia.com>2012-06-19 14:48:07 -0700
commit52b391ca43416e2dbf11487b37652e8ebfec0aaf (patch)
treec8bc2d04472d96222e18487ed03dd5a5be327c24 /arch/arm/mach-tegra/board-whistler-panel.c
parent45db91063208a3f973ed0cf78a4a0a5b9f54a36d (diff)
arm: tegra: Fix cpu governor change issue
It fixes the issue where cpu governor change was inconsistent across platforms. In T2x, AUTO HOTPLUG is disabled therefore we need to store/restore gov for all online cpus across LP0 cycle. In T3x, AUTO HOTPLUG is enabled therefore storing/restoring gov for Cpu0 across LP0 cycle. Cpu0 remains online in suspend and resume. bug 991081 Change-Id: I167654aa21e4832b3fdc40e3d388a4d3f984632b Signed-off-by: Puneet Saxena <puneets@nvidia.com> Reviewed-on: http://git-master/r/105404 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/board-whistler-panel.c')
-rw-r--r--arch/arm/mach-tegra/board-whistler-panel.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/arm/mach-tegra/board-whistler-panel.c b/arch/arm/mach-tegra/board-whistler-panel.c
index 3510f9468394..df8b2859e81c 100644
--- a/arch/arm/mach-tegra/board-whistler-panel.c
+++ b/arch/arm/mach-tegra/board-whistler-panel.c
@@ -320,9 +320,7 @@ static void whistler_panel_early_suspend(struct early_suspend *h)
#ifdef CONFIG_TEGRA_CONVSERVATIVE_GOV_ON_EARLYSUPSEND
cpufreq_store_default_gov();
- if (cpufreq_change_gov(cpufreq_conservative_gov))
- pr_err("Early_suspend: Error changing governor to %s\n",
- cpufreq_conservative_gov);
+ cpufreq_change_gov(cpufreq_conservative_gov);
#endif
}
@@ -331,8 +329,7 @@ static void whistler_panel_late_resume(struct early_suspend *h)
unsigned i;
#ifdef CONFIG_TEGRA_CONVSERVATIVE_GOV_ON_EARLYSUPSEND
- if (cpufreq_restore_default_gov())
- pr_err("Early_suspend: Unable to restore governor\n");
+ cpufreq_restore_default_gov();
#endif
for (i = 0; i < num_registered_fb; i++)