aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDirk Brandewie <dirk.j.brandewie@intel.com>2014-02-12 13:01:06 -0500
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-02-20 19:22:40 -0500
commit4042e7570cff740460b75c6fc604c629621d3dd2 (patch)
tree73378cf25bb76cc3685f71a779f1a3de8cd58ef1
parentc3274763bfc3bf1ececa269ed6e6c4d7ec1c3e5e (diff)
intel_pstate: Use LFM bus ratio as min ratio/P state
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> Cc: 3.13+ <stable@vger.kernel.org> # 3.13+ Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r--drivers/cpufreq/intel_pstate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c
index c788abf1c457..deb04cc64ba1 100644
--- a/drivers/cpufreq/intel_pstate.c
+++ b/drivers/cpufreq/intel_pstate.c
@@ -357,7 +357,7 @@ static int byt_get_min_pstate(void)
357{ 357{
358 u64 value; 358 u64 value;
359 rdmsrl(BYT_RATIOS, value); 359 rdmsrl(BYT_RATIOS, value);
360 return value & 0xFF; 360 return (value >> 8) & 0xFF;
361} 361}
362 362
363static int byt_get_max_pstate(void) 363static int byt_get_max_pstate(void)