Re: How does Linux measure CPU frequency?

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jack Harvard <jack.harvard@...>
Cc: <linux-kernel@...>
Date: Sunday, April 6, 2008 - 12:37 pm

linux knows what style of cpu it is running on and uses non-portable 
techniques to read the time-stamp counter.

lmbench uses some really nice tricks to estimate the cpu frequency in a 
portable manner... all it requires is that at least two of the N code 
sequences it times take a co-prime number of cycles.

-dean

On Sun, 6 Apr 2008, Jack Harvard wrote:

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
How does Linux measure CPU frequency?, Jack Harvard, (Sun Apr 6, 12:30 pm)
Re: How does Linux measure CPU frequency?, dean gaudet, (Sun Apr 6, 12:37 pm)
Re: How does Linux measure CPU frequency?, Jack Harvard, (Mon Apr 7, 9:16 am)