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>

authored by Peter Zijlstra and committed by Ingo Molnar 52a8968c f58899bb

+1 -1
+1 -1
arch/x86/kernel/tsc.c
··· 314 mark_tsc_unstable("cpufreq changes"); 315 } 316 317 - set_cyc2ns_scale(tsc_khz_ref, freq->cpu); 318 319 return 0; 320 }
··· 314 mark_tsc_unstable("cpufreq changes"); 315 } 316 317 + set_cyc2ns_scale(tsc_khz, freq->cpu); 318 319 return 0; 320 }