aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/cpufreq/intel_pstate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c
index 86ad4822305d..e87996355da0 100644
--- a/drivers/cpufreq/intel_pstate.c
+++ b/drivers/cpufreq/intel_pstate.c
@@ -456,7 +456,8 @@ static inline void intel_pstate_calc_busy(struct cpudata *cpu,
456 core_pct = div64_u64(sample->aperf * 100, sample->mperf); 456 core_pct = div64_u64(sample->aperf * 100, sample->mperf);
457 sample->freq = cpu->pstate.turbo_pstate * core_pct * 1000; 457 sample->freq = cpu->pstate.turbo_pstate * core_pct * 1000;
458 458
459 sample->core_pct_busy = sample->pstate_pct_busy * core_pct / 100; 459 sample->core_pct_busy = div_s64((sample->pstate_pct_busy * core_pct),
460 100);
460} 461}
461 462
462static inline void intel_pstate_sample(struct cpudata *cpu) 463static inline void intel_pstate_sample(struct cpudata *cpu)