Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Finding processor frequency
@ 2001-01-24 23:31 Bharadwaj Yadavalli
  2001-01-24 23:33 ` Ross A Knepper
  0 siblings, 1 reply; 6+ messages in thread
From: Bharadwaj Yadavalli @ 2001-01-24 23:31 UTC (permalink / raw)
  To: axp-list

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




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-01-26  3:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2001-01-26  3:53     ` DP264 Sale Maurice Hilarius

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