[CPUFREQ] Longhaul - Fix guess_fsb function
authorRafa³ Bilski <rafalbilski@interia.pl>
Sun, 4 Feb 2007 14:58:46 +0000 (15:58 +0100)
committerDave Jones <davej@redhat.com>
Sun, 4 Feb 2007 23:09:19 +0000 (18:09 -0500)
commit46ef955f5c9de0507859a3f9a92989b7425b73cc
treed9be8c950b8c735e27e6f0774a69b177ac66d23c
parent0d44b2ba287ea98547097ad2b8b0cc5f0589b8d2
[CPUFREQ] Longhaul - Fix guess_fsb function

This is bug reported by John-Marc Chandonia:
> Detected 1002.292 MHz processor.
> longhaul: VIA C3 'Nehemiah B' [C5N] CPU detected.  Powersaver supported.
> longhaul: Using throttling support.
> longhaul: Invalid (reserved) FSB!
FSB is correcly guessed for 999.554 MHz CPU.
To fix this error:
- ROUNDING should be range, not mask - at it's current value it is +7 -8,
- more precise calculations inside guess_fsb - 7.5x133MHz is 1000MHz now.

Signed-off-by: Rafal Bilski <rafalbilski@interia.pl>
Signed-off-by: Dave Jones <davej@redhat.com>
arch/i386/kernel/cpu/cpufreq/longhaul.c