[lkml]   [1997]   [Jan]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: 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

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

 \ /
  Last update: 2005-03-22 13:38    [W:0.029 / U:2.308 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site