Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: "W Bauske" <wsb@paralleldata.com>
To: axp-list@redhat.com
Subject: Re: Finding processor frequency
Date: Thu, 25 Jan 2001 16:39:08 -0600	[thread overview]
Message-ID: <3A70AB0C.D98F0FE8@paralleldata.com> (raw)
In-Reply-To: 200101251636.LAA28416@ives.lkg.dec.com

Bharadwaj Yadavalli wrote:
> 
> (resigned to parsing /proc/cpuinfo :-((

Maybe I missed it but why do you actually care what the Mhz of
the processor is? Also, keep in mind the lmbench routine is often
wrong so you would be better off looking at how the kernel determines
the Mhz. I haven't seen that go wrong on any of my systems as yet.
Including PII/PIII/P4/G4/Alphas. You might be able to lift that piece
of code and use it which would give you exactly what you're looking
for. Note that is not the same thing as Bogomips. I suspect it will
be assembly language though. Check the "arch/*/kernel/time.c" routines
to see how the kernel does it.


Wes




  reply	other threads:[~2001-01-25 22:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-24 23:31 Finding processor frequency Bharadwaj Yadavalli
2001-01-24 23:33 ` Ross A Knepper
2001-01-25  2:54   ` Jeff Sturm
2001-01-25 16:36     ` Bharadwaj Yadavalli
2001-01-25 22:39       ` W Bauske [this message]
2001-01-26  3:53     ` DP264 Sale Maurice Hilarius
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox