Re: x86 clock speed patch -- Possible bug?

Stephan Meyer (sensei@munich.netsurf.de)
Sun, 2 Feb 1997 09:13:47 +0100 (MET)


On Sat, 1 Feb 1997 aidas@ixsrs4.ix.netcom.com wrote:
> I have a P133. When I first started, the /proc/cpuinfo said that I had a
> 133MHz processor. About an hour later, I look at /proc/cpuinfo from my
> user account, and get this:
>
> clock_speed : 132 MHz
>
> That happened several times. Then it reverted back to:
>
> clock_speed : 133 MHz
>
> It's continued to swing back and forth between 133 and 132 MHz as I write
> this.
>
> Is this a bug or some odd hardware quirk?

This is definitely not a bug. On my machine, I get 119 instead of 120
about every 20th time I read /proc/cpuinfo.
Does your harddrive run because of some other process while doing this?

I thought about reading the clock speed once at bootup and save the value.
But that would provoke horribly machine-dependent code in ./init/main.c

Cheers, Stephan

-----------------------------------------------
Stephan Meyer
+49-89-4301114
Stephan.Meyer@munich.netsurf.de
http://fatman.mathematik.tu-muenchen.de/~meyer/
-----------------------------------------------