Commit b6f45a4b authored by Rafa Bilski's avatar Rafa Bilski Committed by Dave Jones

[CPUFREQ] EPS - Correct 2nd brand test

Solution for small, but nasty bug: access beyond end of f_table for C7 brand.
Signed-off-by: default avatarRafal Bilski <rafalbilski@interia.pl>
Signed-off-by: default avatarDave Jones <davej@redhat.com>
parent bd0561c9
...@@ -234,7 +234,7 @@ static int eps_cpu_init(struct cpufreq_policy *policy) ...@@ -234,7 +234,7 @@ static int eps_cpu_init(struct cpufreq_policy *policy)
/* Fill frequency and MSR value table */ /* Fill frequency and MSR value table */
f_table = &centaur->freq_table[0]; 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].frequency = fsb * min_multiplier;
f_table[0].index = (min_multiplier << 8) | min_voltage; f_table[0].index = (min_multiplier << 8) | min_voltage;
f_table[1].frequency = fsb * max_multiplier; f_table[1].frequency = fsb * max_multiplier;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment