Cc: LKML <linux-kernel@...>, Andrew Morton <akpm@...>, Ingo Molnar <mingo@...>, Andi Kleen <ak@...>, Arjan van de Ven <arjan@...>, Venkatesh Pallipadi <venkatesh.pallipadi@...>, Chris Wright <chrisw@...>, john stultz <johnstul@...>
Hi,
On Sun, Jun 10, 2007 at 09:44:05AM -0000, Thomas Gleixner wrote:
Hmm, the cpu-specific offset calculation isn't too expensive, hopefully?
(div/mul in patch, maybe this could be done differently)
And is it granted that the do_div() compiles into a nice plain void
on non-SMP? Would be good to verify this.
And calculation order? Do multiply before division to minimize calculation
error?
(for a timer tick it probably doesn't matter, however)
And of course OTOH doing it the other way might lead to overflows...
Very nice, thanks!
Andreas Mohr
-