diff options
author | Rafał Bilski <rafalbilski@interia.pl> | 2007-02-12 16:19:12 -0500 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2007-02-13 22:58:26 -0500 |
commit | b6f45a4b071d77777d70e097d429273aeedff717 (patch) | |
tree | 2c37f1c92cf7f0e976c8e29ac99f4f7e9df43564 /arch/i386/kernel/cpu/cpufreq | |
parent | bd0561c9d8dcbf21cd9aa46c416bbf6a3a12e4b1 (diff) |
[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 <rafalbilski@interia.pl>
Signed-off-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'arch/i386/kernel/cpu/cpufreq')
-rw-r--r-- | arch/i386/kernel/cpu/cpufreq/e_powersaver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/i386/kernel/cpu/cpufreq/e_powersaver.c b/arch/i386/kernel/cpu/cpufreq/e_powersaver.c index 3243725f80ca..f43d98e11cc7 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) | |||
234 | 234 | ||
235 | /* Fill frequency and MSR value table */ | 235 | /* Fill frequency and MSR value table */ |
236 | f_table = ¢aur->freq_table[0]; | 236 | f_table = ¢aur->freq_table[0]; |
237 | if (brand == EPS_BRAND_EDEN) { | 237 | if (brand != EPS_BRAND_C7M) { |
238 | f_table[0].frequency = fsb * min_multiplier; | 238 | f_table[0].frequency = fsb * min_multiplier; |
239 | f_table[0].index = (min_multiplier << 8) | min_voltage; | 239 | f_table[0].index = (min_multiplier << 8) | min_voltage; |
240 | f_table[1].frequency = fsb * max_multiplier; | 240 | f_table[1].frequency = fsb * max_multiplier; |