Re: [BUG] cpufreq: constant cpu_khz

Dave Jones
2008-08-25T17:54:51Z

On Mon, Aug 25, 2008 at 02:39:26PM +0200, Ingo Molnar wrote:
>
> * Peter Zijlstra <peterz@infradead.org> wrote:
>
> > > 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, but I don't have enough
> > clue to know if its the correct fix, please advise.
>
> > - set_cyc2ns_scale(tsc_khz_ref, freq->cpu);
> > + set_cyc2ns_scale(tsc_khz, freq->cpu);
>
> hm, that too is due to the tsc.c unification - Alok Cc:-ed. Applied your
> fix to x86/urgent.

ACKed-by: Dave Jones <davej@redhat.com>

Good catch Peter. I'm puzzled how that bug was latent on 64bit
for so long with no-one realising though.

Dave

--