From 52b391ca43416e2dbf11487b37652e8ebfec0aaf Mon Sep 17 00:00:00 2001 From: Puneet Saxena Date: Wed, 30 May 2012 16:28:31 +0530 Subject: 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 Reviewed-on: http://git-master/r/105404 Reviewed-by: Simone Willett Tested-by: Simone Willett --- arch/arm/mach-tegra/board-whistler-panel.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'arch/arm/mach-tegra/board-whistler-panel.c') 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++) -- cgit v1.2.3