Re: time interpolation hooks

Arjan van de Ven (arjanv@redhat.com)
Mon, 19 May 2003 17:42:03 +0000


On Mon, May 19, 2003 at 10:34:43AM -0700, David Mosberger wrote:
>
> struct time_interpolator {
> void (*update_wall_time) (long delta_nsec);
> void (*reset_wall_time) (long delta_nsec);
> unsigned long frequency; /* frequency in counts/second */
> unsigned long drift; /* drift in parts-per-million (?) */
> };

probably also a "get interpolated value" kind of thing ?
other than that it seems to match what I had in mind.
For the score we may need something creative; I'm not sure all timers
have a defined drift, otoh parts-per-million seems to be the
standard mechanism of reporting this.

Greetings,
Arjan van de Ven
-
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/