Re: Jiffy based timers/timeouts can expire too soon.
From: Chris Friesen
Date: Thu Dec 02 2004 - 11:37:01 EST
David Vrabel wrote:
Hi,
Jiffy based timers and timeouts can expire too soon because the timer
interrupt accounts for lost ticks and can increment jiffies by more than 1.
On the other hand, you also need to account for lost ticks for timers that
started before interrupts were turned off, otherwise they could run for extra time.
It would be nice to have some kind of constant frequency timestamp that
increments regardless of sleep state or interrupt status, so that sleep periods
and such are based on timestamps rather than ticks (the period of which can vary).
Chris
-
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/