Re: [BUG] cpufreq: constant cpu_khz

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: linux-kernel <linux-kernel@...>
Cc: <cpufreq@...>, Ingo Molnar <mingo@...>, davej <davej@...>
Date: Monday, August 25, 2008 - 7:35 am

On Mon, 2008-08-25 at 08:33 +0200, Peter Zijlstra wrote:

The below seems to fix the problem for me, but I don't have enough clue
to know if its the correct fix, please advise.

diff --git a/arch/x86/kernel/tsc.c b/arch/x86/kernel/tsc.c
index 46af716..2f10f8c 100644
--- a/arch/x86/kernel/tsc.c
+++ b/arch/x86/kernel/tsc.c
@@ -314,7 +319,7 @@ static int time_cpufreq_notifier(struct
notifier_block *nb, unsigned long val,
 			mark_tsc_unstable("cpufreq changes");
 	}
 
-	set_cyc2ns_scale(tsc_khz_ref, freq->cpu);
+	set_cyc2ns_scale(tsc_khz, freq->cpu);
 
 	return 0;
 }


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[BUG] cpufreq: constant cpu_khz, Peter Zijlstra, (Mon Aug 25, 2:33 am)
Re: [BUG] cpufreq: constant cpu_khz, Peter Zijlstra, (Mon Aug 25, 7:35 am)
Re: [BUG] cpufreq: constant cpu_khz, Ingo Molnar, (Mon Aug 25, 8:39 am)
Re: [BUG] cpufreq: constant cpu_khz, Dave Jones, (Mon Aug 25, 1:55 pm)
Re: [BUG] cpufreq: constant cpu_khz, Ingo Molnar, (Mon Aug 25, 1:57 pm)
Re: [BUG] cpufreq: constant cpu_khz, Arjan van de Ven, (Mon Aug 25, 2:22 pm)
Re: [BUG] cpufreq: constant cpu_khz, Peter Zijlstra, (Mon Aug 25, 3:27 pm)
Re: [BUG] cpufreq: constant cpu_khz, Alok Kataria, (Mon Aug 25, 1:34 pm)