[CPUFREQ] EPS - Correct 2nd brand test
authorRafa³ Bilski <rafalbilski@interia.pl>
Mon, 12 Feb 2007 21:19:12 +0000 (22:19 +0100)
committerDave Jones <davej@redhat.com>
Wed, 14 Feb 2007 03:58:26 +0000 (22:58 -0500)
Solution for small, but nasty bug: access beyond end of f_table for C7 brand.

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

index 3243725f80cac3614b12bd93752c22ff50554961..f43d98e11cc72bbe72bc66a5b9cbcaac0704e2d7 100644 (file)
@@ -234,7 +234,7 @@ static int eps_cpu_init(struct cpufreq_policy *policy)
 
        /* Fill frequency and MSR value table */
        f_table = &centaur->freq_table[0];
-       if (brand == EPS_BRAND_EDEN) {
+       if (brand != EPS_BRAND_C7M) {
                f_table[0].frequency = fsb * min_multiplier;
                f_table[0].index = (min_multiplier << 8) | min_voltage;
                f_table[1].frequency = fsb * max_multiplier;