From: Ross A Knepper <rak@zk3.dec.com>
To: axp-list@redhat.com
Subject: Re: Finding processor frequency
Date: Wed, 24 Jan 2001 18:33:57 -0500 (EST) [thread overview]
Message-ID: <Pine.LNX.4.21.0101241831330.30735-100000@imhotep.zk3.dec.com> (raw)
In-Reply-To: <200101242331.SAA24181@ives.lkg.dec.com>
On Wed, 24 Jan 2001, Bharadwaj Yadavalli wrote:
> I do know that cat /proc/cpuinfo prints out, among
> other things, the processor frequency. I do not feel
> very comfortable grep'ing for the string
> "cycle frequency [Hz]" and picking up the value after
> the ":" simply because the string "cycle frequency [Hz]"
> could change to something else in future. There is a
> lesser chance of the structure member change in
> hwrpb_struct.
personally, i think that exporting a hwrpb_struct to userland is both ugly
and unnecessary. the rpb is intended to be hidden to upper levels and
certainly to userland. whereas finding the MHz of the cpu is conceptually
the same from the user's point of view on any architecture, parsing a
hwrpb_struct is clearly alpha-specific.
so while there might be a more preferred way of getting the clock speed
than parsing /proc/cpuinfo, i dont know what it is :)
-ross
next prev parent reply other threads:[~2001-01-24 23:37 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 [this message]
2001-01-25 2:54 ` Jeff Sturm
2001-01-25 16:36 ` Bharadwaj Yadavalli
2001-01-25 22:39 ` W Bauske
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