summaryrefslogtreecommitdiff
path: root/arch/x86/kernel/cpu/cpufreq/longrun.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-06-16 11:12:23 +0200
committerIngo Molnar <mingo@elte.hu>2008-06-16 11:12:23 +0200
commitcfcfdff59b411249d7c660dcf08a9a3f3df9e641 (patch)
treec12d4e2a03dacd62e4656991bdff64c20eca8c1c /arch/x86/kernel/cpu/cpufreq/longrun.c
parentd3794979a8a80c222ce9d016a6dfc4bed36965d0 (diff)
parent066519068ad2fbe98c7f45552b1f592903a9c8c8 (diff)
Merge branch 'linus' into core/percputip-core-percpu-2008-06-16_09.12_Mon
Diffstat (limited to 'arch/x86/kernel/cpu/cpufreq/longrun.c')
-rw-r--r--arch/x86/kernel/cpu/cpufreq/longrun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/cpufreq/longrun.c b/arch/x86/kernel/cpu/cpufreq/longrun.c
index af4a867a097c..777a7ff075de 100644
--- a/arch/x86/kernel/cpu/cpufreq/longrun.c
+++ b/arch/x86/kernel/cpu/cpufreq/longrun.c
@@ -245,7 +245,7 @@ static unsigned int __init longrun_determine_freqs(unsigned int *low_freq,
if ((ecx > 95) || (ecx == 0) || (eax < ebx))
return -EIO;
- edx = (eax - ebx) / (100 - ecx);
+ edx = ((eax - ebx) * 100) / (100 - ecx);
*low_freq = edx * 1000; /* back to kHz */
dprintk("low frequency is %u kHz\n", *low_freq);