diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c index 19712e27ad500983958b2b8897c9b60549594402..ff5c591578ee0e6beeb6b174ed0dabb6cea10db8 100644 --- a/drivers/cpufreq/intel_pstate.c +++ b/drivers/cpufreq/intel_pstate.c @@ -1218,8 +1218,8 @@ static inline int32_t get_avg_frequency(struct cpudata *cpu) static inline int32_t get_avg_pstate(struct cpudata *cpu) { - return div64_u64(cpu->pstate.max_pstate_physical * cpu->sample.aperf, - cpu->sample.mperf); + return mul_ext_fp(cpu->pstate.max_pstate_physical, + cpu->sample.core_avg_perf); } static inline int32_t get_target_pstate_use_cpu_load(struct cpudata *cpu)