Re: [PATCH] Intel clock speed detection

Martin Mares (mj@atrey.karlin.mff.cuni.cz)
Thu, 25 Dec 1997 22:03:06 +0100


Hi,

> . added a field called "x86_mhz" to cpuinfo_x86
> . added a function called "get_cpu_speed" to setup.c
> . calling get_cpu_speed from identify_cpu() in setup.c
> . added reporting of the speed to print_cpu_info() and get_cpuinfo()
> in setup.c

You don't measure CPU clock speed, but a timestamp counter speed instead
which can be different (see Intel documentation regarding the TSC).

-- 
Martin `MJ' Mares   <mj@gts.cz>   http://atrey.karlin.mff.cuni.cz/~mj/
Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth
"A bug in the code is worth two in the documentation."