diff options
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/cpufreq/intel_pstate.c | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c index 86873f4c6a72..6f2ff2775664 100644 --- a/drivers/cpufreq/intel_pstate.c +++ b/drivers/cpufreq/intel_pstate.c @@ -1714,11 +1714,9 @@ static void intel_pstate_max_within_limits(struct cpudata *cpu)  static void intel_pstate_get_cpu_pstates(struct cpudata *cpu)  {  	cpu->pstate.min_pstate = pstate_funcs.get_min(); -	cpu->pstate.max_pstate = pstate_funcs.get_max();  	cpu->pstate.max_pstate_physical = pstate_funcs.get_max_physical();  	cpu->pstate.turbo_pstate = pstate_funcs.get_turbo();  	cpu->pstate.scaling = pstate_funcs.get_scaling(); -	cpu->pstate.max_freq = cpu->pstate.max_pstate * cpu->pstate.scaling;  	if (hwp_active && !hwp_mode_bdw) {  		unsigned int phy_max, current_max; @@ -1726,9 +1724,12 @@ static void intel_pstate_get_cpu_pstates(struct cpudata *cpu)  		intel_pstate_get_hwp_max(cpu, &phy_max, ¤t_max);  		cpu->pstate.turbo_freq = phy_max * cpu->pstate.scaling;  		cpu->pstate.turbo_pstate = phy_max; +		cpu->pstate.max_pstate = HWP_GUARANTEED_PERF(READ_ONCE(cpu->hwp_cap_cached));  	} else {  		cpu->pstate.turbo_freq = cpu->pstate.turbo_pstate * cpu->pstate.scaling; +		cpu->pstate.max_pstate = pstate_funcs.get_max();  	} +	cpu->pstate.max_freq = cpu->pstate.max_pstate * cpu->pstate.scaling;  	if (pstate_funcs.get_aperf_mperf_shift)  		cpu->aperf_mperf_shift = pstate_funcs.get_aperf_mperf_shift(); | 
