Re: [RFC PATCH] x86:Use cpu_khz for loops_per_jiffy calculation

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Pavel Machek <pavel@...>
Cc: Ingo Molnar <mingo@...>, Arjan van de Ven <arjan@...>, Thomas Gleixner <tglx@...>, LKML <linux-kernel@...>, Daniel Hecht <dhecht@...>, Tim Mann <mann@...>, Zach Amsden <zach@...>, Sahil Rihan <srihan@...>
Date: Thursday, June 26, 2008 - 1:20 pm

On Tue, 2008-06-24 at 10:57 -0700, Pavel Machek wrote:

Hi Pavel, 

When you say loops per jiffies has nothing to do with khz, by khz you
mean the cpu frequency, right ?

AFAIU in calibrate_delay_direct too we measure the amount by which timer
has ticked until DELAY_CALIBRATION_TICKS amount of jiffies has passed.
So IMO the code there too assumes that there is one loop per timer
cycle ?

If that's not the case then i fail to understand how does the current
code figures out how many loops occur in a cycle ?

Thanks,
Alok


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

Messages in current thread:
Re: [RFC PATCH] x86:Use cpu_khz for loops_per_jiffy calculat..., Alok Kataria, (Thu Jun 26, 1:20 pm)