Re: [PATCH] Intel clock speed detection

Miquel van Smoorenburg (miquels@cistron.nl)
25 Dec 1997 12:53:53 +0100


In article <Pine.LNX.3.96.971223174929.1148A-100000@neko.binary9.net>,
Nicholas J. Leon <nicholas@binary9.net> wrote:
>And while we are on it, does anyone else know another method of
>determining (relatively accurately) the clock of a chip? It is my
>understanding that the UTIME patch can do it, but until it is included in
>the mainstream kernel, I'd rather not depend on it (plus it's HUGE for
>what I want to do 72K vs. 3K).

Well, I did some maintenance on a FreeBSD 2.2.5-STABLE the other day and it
seems to be able to detect the clockspeed. You might want to check out
how they do it:

CPU: Pentium (133.64-MHz 586-class CPU)
Origin = "GenuineIntel" Id = 0x52c Stepping=12
Features=0x3bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,APIC>

Mike.

-- 
 Miquel van Smoorenburg |  Studying to be a technomage   <*>
    miquels@cistron.nl  | "May you live in interesting times"