From: Rafa³ Bilski Date: Mon, 12 Feb 2007 21:19:12 +0000 (+0100) Subject: [CPUFREQ] EPS - Correct 2nd brand test X-Git-Tag: v2.6.21-rc1~95^2~1 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=b6f45a4b071d77777d70e097d429273aeedff717;p=linux-2.6-omap-h63xx.git [CPUFREQ] EPS - Correct 2nd brand test Solution for small, but nasty bug: access beyond end of f_table for C7 brand. Signed-off-by: Rafal Bilski Signed-off-by: Dave Jones --- diff --git a/arch/i386/kernel/cpu/cpufreq/e_powersaver.c b/arch/i386/kernel/cpu/cpufreq/e_powersaver.c index 3243725f80c..f43d98e11cc 100644 --- a/arch/i386/kernel/cpu/cpufreq/e_powersaver.c +++ b/arch/i386/kernel/cpu/cpufreq/e_powersaver.c @@ -234,7 +234,7 @@ static int eps_cpu_init(struct cpufreq_policy *policy) /* Fill frequency and MSR value table */ f_table = ¢aur->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;