]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
cpufreq: fix cpufreq suspend/resume for intel_pstate
authorLan Tianyu <tianyu.lan@intel.com>
Thu, 18 Sep 2014 07:03:07 +0000 (15:03 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 22 Sep 2014 12:23:18 +0000 (14:23 +0200)
commit8e30444e153008e8eb3e74cbcb7a865bfcfb04a0
tree3e63816efa5d70f4343d7018683b9c4b7fe51322
parent0f33be009b89d2268e94194dc4fd01a7851b6d51
cpufreq: fix cpufreq suspend/resume for intel_pstate

Cpufreq core introduces cpufreq_suspended flag to let cpufreq sysfs nodes
across S2RAM/S2DISK. But the flag is only set in the cpufreq_suspend()
for cpufreq drivers which have target or target_index callback. This
skips intel_pstate driver. This patch is to set the flag before checking
target or target_index callback.

Fixes: 2f0aea936360 (cpufreq: suspend governors on system suspend/hibernate)
Signed-off-by: Lan Tianyu <tianyu.lan@intel.com>
Cc: 3.15+ <stable@vger.kernel.org> # 3.15+
[rjw: Subject]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq.c