login
Header Space

 
 

Re: x86: Clean up computation of HPET .mult variables

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Daniel Walker <dwalker@...>
Cc: <linux-kernel@...>, <tglx@...>, <venkatesh.pallipadi@...>
Date: Tuesday, May 6, 2008 - 11:39 pm

On Tue  6.May'08 at 19:17:41 -0700, Daniel Walker wrote:

Ok.


Good!


Heh, I trust those numbers because they imply that my patch is good :-)

Note that my hpet_period = 69841279 * 10^{-15} secs, then

mult/2^shift = ns/cyc = 69.841279 <-- period in nanoseconds

so, using Kcalc I get for shift 22 (the "exact" value, no rounding)

mult = 2^22 * 69.841279 = 292,935,555.875

while for shift = 25 I get 8 times that, or

mult = 2,343,484,447

So comparing with the numbers you quoted from your experiments
you will realize that the value you got with my patch is actually
10 times better, so your assumption about clocksource_hz2mult
being more correct is not good.


Is there some formula to decide which shift value is better to
a given period? IOW, how did you arrive at 25? Note that I
want to learn this, that's why I am asking.


Hmm, it is more complicated than div_sc in my humble opinion.

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

Messages in current thread:
x86: Clean up computation of HPET .mult variables, Carlos R. Mafra, (Mon May 5, 7:11 pm)
Re: rtc-cmos.c: Build fix, Carlos R. Mafra, (Tue May 6, 2:51 pm)
Re: rtc-cmos.c: Build fix, Andrew Morton, (Wed May 7, 5:31 pm)
Re: rtc-cmos.c: Build fix, Ingo Molnar, (Fri May 9, 4:32 am)
Re: rtc-cmos.c: Build fix, Carlos R. Mafra, (Fri May 9, 8:33 am)
Re: rtc-cmos.c: Build fix, Ingo Molnar, (Wed May 7, 3:10 am)
Re: x86: Clean up computation of HPET .mult variables, Carlos R. Mafra, (Tue May 6, 9:13 am)
Re: x86: Clean up computation of HPET .mult variables, Daniel Walker, (Mon May 5, 7:58 pm)
Re: x86: Clean up computation of HPET .mult variables, Carlos R. Mafra, (Mon May 5, 10:13 pm)
Re: x86: Clean up computation of HPET .mult variables, Daniel Walker, (Mon May 5, 11:23 pm)
Re: x86: Clean up computation of HPET .mult variables, Carlos R. Mafra, (Tue May 6, 8:59 am)
Re: x86: Clean up computation of HPET .mult variables, Daniel Walker, (Tue May 6, 12:21 pm)
Re: x86: Clean up computation of HPET .mult variables, Carlos R. Mafra, (Tue May 6, 4:50 pm)
Re: x86: Clean up computation of HPET .mult variables, Daniel Walker, (Tue May 6, 10:17 pm)
Re: x86: Clean up computation of HPET .mult variables, Carlos R. Mafra, (Tue May 6, 11:39 pm)
Re: x86: Clean up computation of HPET .mult variables, Daniel Walker, (Wed May 7, 12:21 am)
speck-geostationary