[CPUFREQ] Longhaul - fix 200MHz FSB
authorRafa³ Bilski <rafalbilski@interia.pl>
Thu, 30 Nov 2006 02:36:44 +0000 (03:36 +0100)
committerDave Jones <davej@redhat.com>
Tue, 12 Dec 2006 22:33:10 +0000 (17:33 -0500)
On board of Epia SP13000 is 10x133Mhz VIA Nehemiah. It is reported
as 10x200MHz. This patch is fixing this issue.

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

index 7233abe5d695533a5ca701bb615681c1a156d487..05946293364ce57b8ca9956b747fb23217a79743 100644 (file)
@@ -410,7 +410,7 @@ static int __init longhaul_get_ranges(void)
                        maxmult=longhaul_get_cpu_mult();
 
                        /* Starting with the 1.2GHz parts, theres a 200MHz bus. */
-                       if ((cpu_khz/1000) > 1200)
+                       if ((cpu_khz/maxmult) > 13400)
                                fsb = 200;
                        else
                                fsb = eblcr_fsb_table_v2[longhaul.bits.MaxMHzFSB];