]> git.karo-electronics.de Git - karo-tx-linux.git/commit
cpufreq / intel_pstate: use lowest requested max performance
authorDirk Brandewie <dirk.j.brandewie@intel.com>
Tue, 7 May 2013 15:20:26 +0000 (08:20 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 19 May 2013 18:38:42 +0000 (11:38 -0700)
commit2aa491f8bdcac932006548b1a2b655b29c942e08
tree55a250b12e7dd3b7c1be58ae5dc3fd1cf8f9746b
parent5aacc8bcf0b23e20cbb205ac6fdc3ce797e1cae2
cpufreq / intel_pstate: use lowest requested max performance

commit d8f469e9cff3bc4a6317d923e9506be046aa7bdc upstream.

There are two ways that the maximum p-state can be clamped, via a
policy change and via the sysfs file.

The acpi-thermal driver adjusts the p-state policy in response to
thermal events.  These changes override the users settings at the
moment.

Use the lowest of the two requested values this ensures that we will
not exceed the requested pstate from either mechanism.

Reported-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.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