Messages in this thread |  | | Date | Thu, 30 Jan 1997 16:46:31 +0100 (MET) | From | Stephan Meyer <> | Subject | Re: clock rate probing for x86 |
| |
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 motherboard)
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
----------------------------------------------- Stephan Meyer +49-89-4301114 Stephan.Meyer@munich.netsurf.de http://fatman.mathematik.tu-muenchen.de/~meyer/ -----------------------------------------------
|  |