RFC: 405LP sleep
Tom Rini
trini at kernel.crashing.org
Tue Dec 24 02:03:42 EST 2002
On Fri, Dec 20, 2002 at 05:31:14PM -0600, Hollis Blanchard wrote:
> On Thu, 2002-12-19 at 15:36, Todd Poynor wrote:
>
> > + jiffies += rtc_secs_elapsed * HZ;
> >
> > If jiffies is jumped forward then can kernel events (such as those
> > waiting on a kernel timer) be missed?
>
> I certainly *hope* the check is >= rather than == ... :)
They all should in fact be using time_after(...) or so, to deal
correctly with a jiffies wrap. But from what I recall of doing a
massive kick of the jiffies (to test some jiffies wrap thing) in early
2.4 I believe, things can become somewhat unhappy. Think of a device
which happens to be 'sleeping' while the user is on vacation or so.
--
Tom Rini (TR1265)
http://gate.crashing.org/~trini/
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
More information about the Linuxppc-dev
mailing list