diff options
Diffstat (limited to 'drivers/cpufreq/intel_pstate.c')
-rw-r--r-- | drivers/cpufreq/intel_pstate.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c index 30fe323c4551..f502d5b90c25 100644 --- a/drivers/cpufreq/intel_pstate.c +++ b/drivers/cpufreq/intel_pstate.c | |||
@@ -813,6 +813,11 @@ static int core_get_max_pstate(void) | |||
813 | if (err) | 813 | if (err) |
814 | goto skip_tar; | 814 | goto skip_tar; |
815 | 815 | ||
816 | /* For level 1 and 2, bits[23:16] contain the ratio */ | ||
817 | if (tdp_ctrl) | ||
818 | tdp_ratio >>= 16; | ||
819 | |||
820 | tdp_ratio &= 0xff; /* ratios are only 8 bits long */ | ||
816 | if (tdp_ratio - 1 == tar) { | 821 | if (tdp_ratio - 1 == tar) { |
817 | max_pstate = tar; | 822 | max_pstate = tar; |
818 | pr_debug("max_pstate=TAC %x\n", max_pstate); | 823 | pr_debug("max_pstate=TAC %x\n", max_pstate); |