diff options
author | Peter Zijlstra <peterz@infradead.org> | 2008-08-25 11:35:06 (GMT) |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-08-25 12:39:19 (GMT) |
commit | 52a8968ce95da8469ba0a9b3e4010fe31caf77a3 (patch) | |
tree | 6acffeb98a2f598be29e559a75dbfe5deb5864b3 /arch/x86 | |
parent | f58899bb0224741eb0409ada67ecafe90ba137ef (diff) | |
download | linux-fsl-qoriq-52a8968ce95da8469ba0a9b3e4010fe31caf77a3.tar.xz |
x86: fix cpufreq + sched_clock() regression
I noticed that my sched_clock() was slow on a number of machine, so I
started looking at cpufreq.
The below seems to fix the problem for me.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/kernel/tsc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/tsc.c b/arch/x86/kernel/tsc.c index 9bed5ca..8e786b0 100644 --- a/arch/x86/kernel/tsc.c +++ b/arch/x86/kernel/tsc.c @@ -314,7 +314,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; } |