diff options
Diffstat (limited to 'arch/arm/mach-tegra/cpu-tegra3.c')
-rw-r--r-- | arch/arm/mach-tegra/cpu-tegra3.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/cpu-tegra3.c b/arch/arm/mach-tegra/cpu-tegra3.c index 84ddc4ffb626..2ec00511ccbc 100644 --- a/arch/arm/mach-tegra/cpu-tegra3.c +++ b/arch/arm/mach-tegra/cpu-tegra3.c @@ -271,13 +271,18 @@ static void tegra_auto_hotplug_work_func(struct work_struct *work) } } -void tegra_auto_hotplug_governor(unsigned int cpu_freq) +void tegra_auto_hotplug_governor(unsigned int cpu_freq, bool suspend) { unsigned long up_delay; if (!is_g_cluster_present()) return; + if (suspend && (hp_state != TEGRA_HP_DISABLED)) { + hp_state = TEGRA_HP_IDLE; + return; + } + up_delay = is_lp_cluster() ? up2g0_delay : up2gn_delay; switch (hp_state) { |