Thread (4 messages) 4 messages, 3 authors, 2002-12-23

Re: RFC: 405LP sleep

From: Tom Rini <hidden>
Date: 2002-12-23 15:03:42

On Fri, Dec 20, 2002 at 05:31:14PM -0600, Hollis Blanchard wrote:
On Thu, 2002-12-19 at 15:36, Todd Poynor wrote:
quoted
+       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/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help