From 33df837e8b9ac4010d41e822351bb4de79b89a31 Mon Sep 17 00:00:00 2001 From: Dirk Brandewie Date: Mon, 11 Feb 2013 20:33:34 +0100 Subject: [PATCH] --- yaml --- r: 351058 b: refs/heads/master c: 191e5edf96dc4939f5db0605cc65de9f4d88d155 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/cpufreq/intel_pstate.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 7e1e1690c0e9..9853d808d552 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: c88883cd545ea2a0baafe7308618de9cbf420bdd +refs/heads/master: 191e5edf96dc4939f5db0605cc65de9f4d88d155 diff --git a/trunk/drivers/cpufreq/intel_pstate.c b/trunk/drivers/cpufreq/intel_pstate.c index 86ad4822305d..e87996355da0 100644 --- a/trunk/drivers/cpufreq/intel_pstate.c +++ b/trunk/drivers/cpufreq/intel_pstate.c @@ -456,7 +456,8 @@ static inline void intel_pstate_calc_busy(struct cpudata *cpu, core_pct = div64_u64(sample->aperf * 100, sample->mperf); sample->freq = cpu->pstate.turbo_pstate * core_pct * 1000; - sample->core_pct_busy = sample->pstate_pct_busy * core_pct / 100; + sample->core_pct_busy = div_s64((sample->pstate_pct_busy * core_pct), + 100); } static inline void intel_pstate_sample(struct cpudata *cpu)