lkml.org 
[lkml]   [2004]   [Dec]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC] New timeofday proposal (v.A1)
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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:08    [W:0.125 / U:0.336 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site