Skip to content

Commit

Permalink
[CPUFREQ] EPS - Correct 2nd brand test
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rafa� Bilski authored and Dave Jones committed Feb 14, 2007
1 parent bd0561c commit b6f45a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/i386/kernel/cpu/cpufreq/e_powersaver.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b6f45a4

Please sign in to comment.