[prev in list] [next in list] [prev in thread] [next in thread]
List: linuxppc-dev
Subject: RFC: 405LP sleep
From: trini () kernel ! crashing ! org (Tom Rini)
Date: 2002-12-23 15:03:42
Message-ID: 20021223150342.GA15397 () opus ! bloom ! county
[Download RAW message or body]
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/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic