Re: [PATCH] i386: Selectable Frequency of the Timer Interrupt

Andrew Morton
2005-07-14T18:03:07Z

Vojtech Pavlik <vojtech@suse.cz> wrote:
>
> A note on the relaive timer API: There needs to be a way to say
> "x milliseconds from the time this timer should have triggered" instead
> of "x milliseconds from now", to avoid skew in timers that try to be
> strictly periodic.

mod_timer(timer, timer->expires + N) ?

(add_timer() will treat a negative `expires' as "right now", so we'll dtrt
if the time now has overrun (timer->expires + N))