]> git.hungrycats.org Git - linux/commitdiff
[CPUFREQ] Fix use of fsb before initialisation in longhaul.
authorDave Jones <davej@redhat.com>
Thu, 4 Sep 2003 02:48:51 +0000 (03:48 +0100)
committerDave Jones <davej@redhat.com>
Thu, 4 Sep 2003 02:48:51 +0000 (03:48 +0100)
arch/i386/kernel/cpu/cpufreq/longhaul.c

index 6043aa322f5df0e73b54bcaec4b85cb855575a5c..f7e778d90f4c741f9aaa5fd421fe6c6f2139559f 100644 (file)
@@ -254,7 +254,7 @@ static int longhaul_version;
 static struct cpufreq_frequency_table *longhaul_table;
 
 
-static int longhaul_get_cpu_fsb (void)
+static unsigned int longhaul_get_cpu_fsb (void)
 {
        unsigned long lo, hi;
        unsigned int eblcr_fsb_table[] = { 66, 133, 100, -1 };
@@ -403,6 +403,8 @@ static int __init longhaul_get_ranges (void)
        unsigned int j, k = 0;
        union msr_longhaul longhaul;
 
+       fsb = longhaul_get_cpu_fsb();
+
        switch (longhaul_version) {
        case 1:
                /* Ugh, Longhaul v1 didn't have the min/max MSRs.