]> git.hungrycats.org Git - linux/commitdiff
intel_pstate: Use LFM bus ratio as min ratio/P state
authorDirk Brandewie <dirk.j.brandewie@intel.com>
Wed, 12 Feb 2014 18:01:06 +0000 (10:01 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Mar 2014 06:06:23 +0000 (22:06 -0800)
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>
drivers/cpufreq/intel_pstate.c

index d51f17ed691e023196bbd7e56a3341d4025ce092..aa366ece2d4bd7d7e5912bee77ac1c14513e0a6a 100644 (file)
@@ -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)