Skip to content

Commit

Permalink
cpufreq / intel_pstate: Fix 32 bit build
Browse files Browse the repository at this point in the history
Fixes 32 bit build.

on i386:
drivers/built-in.o: In function `intel_pstate_timer_func':
intel_pstate.c:(.text+0x4ce97e): undefined reference to `__udivdi3'
drivers/built-in.o: In function `intel_pstate_cpu_init':
intel_pstate.c:(.cpuinit.text+0x974): undefined reference to `__udivdi3'

Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Dirk Brandewie <dirk.j.brandewie@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Dirk Brandewie authored and Rafael J. Wysocki committed Feb 11, 2013
1 parent c88883c commit 191e5ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/cpufreq/intel_pstate.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 191e5ed

Please sign in to comment.