Re: [PATCH] linux-2.5.67_lost-tick-fix_A2

From: john stultz (
Date: Wed Apr 16 2003 - 18:21:36 EST

On Wed, 2003-04-16 at 16:03, george anzinger wrote:
> john stultz wrote:
> > Some of the divs and mods being added here might concern folks, but by
> > not calling timer->get_offset() in detect_lost_tick() we eliminate much
> > of the same math. I did some simple cycle counting and the new code
> > comes out on average equivalent or faster.
> I think that if you look at the generated code you may find that there
> are NO div in the asm code. The C folks know about scaling to avoid
> div especially when the divisor is a constant :)

Indeed you are correct. An objdump of both the timer_tsc.o and
timer_cyclone.o code reveals that the only divs occur in init code. I
like your argument better then mine :)


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Wed Apr 23 2003 - 22:00:20 EST