Re: [PATCH] 2.6.14 - Fix for incorrect CPU speed determination in powernow for i386
From: Larry.Finger@xxxxxxxxxxxx
Date: Sat Oct 29 2005 - 10:19:08 EST
Ingo Oeser pointed out that my original patch unnecessarily initialized a variable that was already in the BSS section. I have therefore removed that hunk of the patch. The revised patch is given below.
Signed-off-by: Larry Finger <Larry.Finger@xxxxxxxxxxxx>
---
diff --git a/arch/i386/kernel/timers/common.c b/arch/i386/kernel/timers/common.c
--- a/arch/i386/kernel/timers/common.c
+++ b/arch/i386/kernel/timers/common.c
@@ -151,7 +151,7 @@ unsigned long read_timer_tsc(void)
/* calculate cpu_khz */
void init_cpu_khz(void)
{
- if (cpu_has_tsc) {
+ if (cpu_has_tsc && !cpu_khz) {
unsigned long tsc_quotient = calibrate_tsc();
if (tsc_quotient) {
/* report CPU clock rate in Hz.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/