Re: [RFC] New timeofday proposal (v.A1)

From: Christoph Lameter
Date: Wed Dec 08 2004 - 18:50:11 EST


On Wed, 8 Dec 2004, George Anzinger wrote:

> Right. We seem to be doing ok now by just adjusting things at tick time and
> using the "normal" interpolation between ticks.
>
> As for the math, the current code keeps a running "remainder" which is the
> amount of the correction that was finer than the clock resolution (i.e. less
> than a nano second) and rolls this in on the next tick. This gives resolution
> out to several bits to the right of the nano second. And I think this is all
> done with 32 bit math (if memory serves).

That is probably the i386 version with which I am not familiar. The time
interpolator logic (IA64 and SPARC64) does fine with a scaled 64 bit
factor without a remainder. The factor may be used to express fractions of
nanoseconds.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/