* Proc/CpuInfo - Timebase
@ 2010-01-29 11:23 Ajay Jain
2010-01-29 11:35 ` Jenkins, Clive
0 siblings, 1 reply; 2+ messages in thread
From: Ajay Jain @ 2010-01-29 11:23 UTC (permalink / raw)
To: linuxppc-dev
Hi,
On a powerpc system running linux, when I see cat /proc/cpuinfo, I
find the value of timebase. Can somebody suggest on what is that, and
how is it used?
Regards,
Ajay.
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: Proc/CpuInfo - Timebase
2010-01-29 11:23 Proc/CpuInfo - Timebase Ajay Jain
@ 2010-01-29 11:35 ` Jenkins, Clive
0 siblings, 0 replies; 2+ messages in thread
From: Jenkins, Clive @ 2010-01-29 11:35 UTC (permalink / raw)
To: Ajay Jain, linuxppc-dev
> On a powerpc system running linux, when I see cat /proc/cpuinfo, I
> find the value of timebase. Can somebody suggest on what is that, and
> how is it used?
It is the frequency (in Hz) of the clock that increments the Time Base
Register (TBR).
After reading TBR (or calculating a difference between two TBR values)
you can use "timebase" to convert to real time units, such as
microseconds/nanoseconds/picoseconds.
For debugging I log events together with a TBR reading, which I can
later convert to a time from reset (or a time from the moment when the
kernel initialised TBR to zero, which happens in some kernels).
Clive
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-01-29 11:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-29 11:23 Proc/CpuInfo - Timebase Ajay Jain
2010-01-29 11:35 ` Jenkins, Clive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).