cpufreq: intel_pstate: Fix processing for turbo activation ratio
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Sat, 23 Apr 2016 02:53:59 +0000 (19:53 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 25 Apr 2016 21:39:09 +0000 (23:39 +0200)
commit1becf03545a0859ceaaf9e8c2d9861882a71cb01
treedf0ada1f56f1f3fbd41f967db21b5b59c361146d
parent94862a62dfe3ba1c7601115a2dc80721c5b256f0
cpufreq: intel_pstate: Fix processing for turbo activation ratio

When the config TDP level is not nominal (level = 0), the MSR values for
reading level 1 and level 2 ratios contain power in low 14 bits and actual
ratio bits are at bits [23:16]. The current processing for level 1 and
level 2 is wrong as there is no shift done to get actual ratio.

Fixes: 6a35fc2d6c22 (cpufreq: intel_pstate: get P1 from TAR when available)
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Cc: 4.4+ <stable@vger.kernel.org> # 4.4+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/intel_pstate.c