Re: [RFC PATCH] x86:Use cpu_khz for loops_per_jiffy calculation

Pavel Machek
2008-06-04T14:45:31Z

Hi!

> @@ -123,6 +123,8 @@
> (boot_cpu_data.x86_vendor == X86_VENDOR_AMD))
> cpu_khz = calculate_cpu_khz();
>
> + lpj_tsc = ((unsigned long)cpu_khz * 1000)/HZ;
> +

No. Some cpus do one loop per tick, some do two loops per tick, and
there are probably weird cpus, too.

Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html