* [PATCH] EPS - Correct 2nd brand test
@ 2007-02-12 21:19 Rafał Bilski
0 siblings, 0 replies; only message in thread
From: Rafał Bilski @ 2007-02-12 21:19 UTC (permalink / raw)
To: Dave Jones; +Cc: cpufreq
Solution for small, but nasty bug: access beyond end of f_table
for C7 brand.
Signed-off-by: Rafal Bilski <rafalbilski@interia.pl>
---
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
--- 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;
----------------------------------------------------------------------
Na Walentynki odwiedz A.Morka
>> http://link.interia.pl/f1a10
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-02-12 21:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-12 21:19 [PATCH] EPS - Correct 2nd brand test Rafał Bilski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox