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-ventana-panel.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'arch/arm/mach-tegra/board-ventana-panel.c') diff --git a/arch/arm/mach-tegra/board-ventana-panel.c b/arch/arm/mach-tegra/board-ventana-panel.c index a9e7a67f2bb1..0013e36d38a6 100644 --- a/arch/arm/mach-tegra/board-ventana-panel.c +++ b/arch/arm/mach-tegra/board-ventana-panel.c @@ -367,9 +367,7 @@ static void ventana_panel_early_suspend(struct early_suspend *h) fb_blank(registered_fb[1], FB_BLANK_NORMAL); #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 } @@ -377,8 +375,7 @@ static void ventana_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++) fb_blank(registered_fb[i], FB_BLANK_UNBLANK); -- cgit v1.2.3