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: Arjan van de Ven <arjan@...>
Cc: Thomas Gleixner <tglx@...>, Ingo Molnar <mingo@...>, LKML <linux-kernel@...>, Daniel Hecht <dhecht@...>, Tim Mann <mann@...>, Zach Amsden <zach@...>, Sahil Rihan <srihan@...>
Date: Thursday, June 5, 2008 - 2:37 pm

On Wed, 2008-06-04 at 06:16 -0700, Arjan van de Ven wrote:

So then, how about using the tsc_khz (tsc frequency) for this
calculation. Atleast for the boot processor the lpj value can be derived
from the tsc frequency.
So insted of using lpj_tsc for all cpu's we can use it just for the boot
processor.


Agreed so we might not be able to use it for other cpus's. 
Is there a way to get the cpu frequency of the processor that we are
bringing up, i see that there is cpufreq_quick_get but this would be
initialized very late in the boot process.  

If there is a way we can check if the cpu being brought up is same as
the last one and then we can skip the delay calibration, something like
what ia64 does.

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 5, 2:37 pm)