Re: clock rate probing for x86

Stephan Meyer (
Thu, 30 Jan 1997 16:46:31 +0100 (MET)

On Tue, 28 Jan 1997, Alan Cox wrote:
> This doesn't work SMP. You need to store the MHZ value of each processor
> into the processor info array under SMP and use CD(fieldname) not CD(getmhz)
> The best bet is to have a quick look at arch/i386/kernel/smp.c and the
> smp_store_info function. For the SMP kernel you'd want to do
> c->mhz = getmhz();

Are the jiffies already enabled at that point? (I have no multi-pentium

With my single processor system, I face this problem:
If I wanted to compute the clock speed at startup, where should the call
to getmhz() go? In setup_arch() the jiffies are not yet enabled.

Do I need a nasty #define in ./init/main.c near the call to the bogomips?
If so, how should it look? "#ifdef CONFIG_M486 || ..." ?

> Alan


Stephan Meyer