]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: update 'cpufreq_suspended' after stopping governors
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 30 Sep 2014 04:03:17 +0000 (09:33 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 30 Sep 2014 19:02:34 +0000 (21:02 +0200)
commitacfe05b14413525583b788e6726f20c7e4768a0f
tree75fe780417f1cf8a6fc00b835f94e80e0452b15c
parentc8a0ebc82290bfb3dfc4874e442937e459da155f
cpufreq: update 'cpufreq_suspended' after stopping governors

Commit 2aac0b44d11a ("cpufreq: fix cpufreq suspend/resume for intel_pstate")
introduced a bug where the governors wouldn't be stopped anymore for
->target{_index}() drivers during suspend. This happens because
'cpufreq_suspended' is updated before stopping the governors during suspend
and due to this __cpufreq_governor() would return early due to this check:

/* Don't start any governor operations if we are entering suspend */
if (cpufreq_suspended)
return 0;

Fixes: 2aac0b44d11a ("cpufreq: fix cpufreq suspend/resume for intel_pstate")
Cc: 3.15+ <stable@vger.kernel.org> # 3.15+: 2aac0b44d11a "cpufreq: fix cpufreq suspend/resume for intel_pstate"
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq.c