public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
From: Tom Rini <trini@kernel•crashing.org>
To: Hollis Blanchard <hollis@austin•ibm.com>
Cc: Todd Poynor <tpoynor@mvista•com>,
	devel list <linuxppc-dev@lists•linuxppc.org>
Subject: Re: RFC: 405LP sleep
Date: Mon, 23 Dec 2002 08:03:42 -0700	[thread overview]
Message-ID: <20021223150342.GA15397@opus.bloom.county> (raw)
In-Reply-To: <1040427074.1095.23.camel@granite.austin.ibm.com>


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/

      reply	other threads:[~2002-12-23 15:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-19 20:41 RFC: 405LP sleep Hollis Blanchard
2002-12-19 21:36 ` Todd Poynor
2002-12-20 23:31   ` Hollis Blanchard
2002-12-23 15:03     ` Tom Rini [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021223150342.GA15397@opus.bloom.county \
    --to=trini@kernel$(echo .)crashing.org \
    --cc=hollis@austin$(echo .)ibm.com \
    --cc=linuxppc-dev@lists$(echo .)linuxppc.org \
    --cc=tpoynor@mvista$(echo .)com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox