diff options
author | Dirk Brandewie <dirk.j.brandewie@intel.com> | 2014-02-12 10:01:06 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-03-06 22:06:23 -0800 |
commit | 55e02d0a3383b15d1fcff130f83c0096e22a19b2 (patch) | |
tree | fa854ceef7da36581c4e5eb1bbfc7887f0368834 | |
parent | 3d1fe6dc50ee5443e3a529a9b60b5aa1f5e3cc1e (diff) | |
download | lwn-55e02d0a3383b15d1fcff130f83c0096e22a19b2.tar.gz lwn-55e02d0a3383b15d1fcff130f83c0096e22a19b2.zip |
intel_pstate: Use LFM bus ratio as min ratio/P state
commit 4042e7570cff740460b75c6fc604c629621d3dd2 upstream.
LFM (max efficiency ratio) is the max frequency at minimum voltage
supported by the processor. Using LFM as the minimum P state
increases performmance without affecting power. By not using P states
below LFM we avoid using P states that are less power efficient.
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>
-rw-r--r-- | drivers/cpufreq/intel_pstate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c index d51f17ed691e..aa366ece2d4b 100644 --- a/drivers/cpufreq/intel_pstate.c +++ b/drivers/cpufreq/intel_pstate.c @@ -348,7 +348,7 @@ static int byt_get_min_pstate(void) { u64 value; rdmsrl(BYT_RATIOS, value); - return value & 0xFF; + return (value >> 8) & 0xFF; } static int byt_get_max_pstate(void) |