Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Bharadwaj Yadavalli <sby@ives.lkg.dec.com>
To: axp-list@redhat.com
Subject: Finding processor frequency
Date: Wed, 24 Jan 2001 18:31:38 -0500 (EST)	[thread overview]
Message-ID: <200101242331.SAA24181@ives.lkg.dec.com> (raw)

Is there a system call that fills a variable of type
struct hwrpb_struct (asm/hwrpb.h) so that I can find
the processor frequency from the user-land?

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.

Bharadwaj




             reply	other threads:[~2001-01-24 23:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-24 23:31 Bharadwaj Yadavalli [this message]
2001-01-24 23:33 ` Finding processor frequency Ross A Knepper
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