]> git.hungrycats.org Git - linux/commitdiff
[CPUFREQ] Samuel2 can use eblcr to determine FSB.
authorDave Jones <davej@redhat.com>
Tue, 24 Aug 2004 19:17:48 +0000 (20:17 +0100)
committerDave Jones <davej@delerium.codemonkey.org.uk>
Tue, 24 Aug 2004 19:17:48 +0000 (20:17 +0100)
From: Sven Traenkle.

here's a patch that solves some issues I have with the longhaul cpufreq
driver on my epia 6000CL/Via EDEN (actually reporting as CentaurHauls,
family 6, model 7, VIA Samuel 2). The driver tries to compute the fsb speed
while it could actually use the fixed values (as it does for model == 6).
I got this change from the via forum, so no credits to me.

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

index 4f5e1f62bb3d24c5ecd7a9bee6d1eaa7244558e6..aa9b254dcef4416163f70dd8b85e0fa6f23960ef 100644 (file)
@@ -300,7 +300,7 @@ static int __init longhaul_get_ranges(void)
                maxmult = longhaul_get_cpu_mult();
                rdmsr (MSR_IA32_EBL_CR_POWERON, lo, hi);
                invalue = (lo & (1<<18|1<<19)) >>18;
-               if (cpu_model==CPU_SAMUEL)
+               if (cpu_model==CPU_SAMUEL || cpu_model==CPU_SAMUEL2)
                        fsb = eblcr_fsb_table_v1[invalue];
                else
                        fsb = guess_fsb();