cpufreq / intel_pstate: Fix max_perf_pct on resume
authorDirk Brandewie <dirk.j.brandewie@intel.com>
Tue, 15 Oct 2013 18:06:14 +0000 (11:06 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Nov 2013 03:05:30 +0000 (12:05 +0900)
commitf606b358df6e174cd57f0509e5f5299bd4a73854
tree2b1b033d875dbdeff0c1f3bd1ec25f9f31562d17
parent40f3a9e5aea1753ececbcbbfe483b0c05788b001
cpufreq / intel_pstate: Fix max_perf_pct on resume

commit 52e0a509e5d6f902ec26bc2a8bb02b137dc453be upstream.

If the system is suspended while max_perf_pct is less than 100 percent
or no_turbo set policy->{min,max} will be set incorrectly with scaled
values which turn the scaled values into hard limits.

References: https://bugzilla.kernel.org/show_bug.cgi?id=61241
Reported-by: Patrick Bartels <petzicus@googlemail.com>
Signed-off-by: Dirk Brandewie <dirk.j.brandewie@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/cpufreq/intel_pstate.c