Re: time goes backwards periodically on laptop if booted in low-power mode

From: Chris Friesen (cfriesen@nortelnetworks.com)
Date: Mon Feb 18 2002 - 18:06:41 EST


Nick Craig-Wood wrote:
>
> On Mon, Feb 18, 2002 at 04:54:23PM -0500, Chris Friesen wrote:
> > Nick Craig-Wood wrote:
> > > I made a patch to fix this (this is its first outing). It stops
> > > do_gettimeofday reporting a time less than it reported last time.
> >
> > I see a minor problem here...what happens if you want to reset your clock (for
> > whatever purpose) to a previous time?
>
> Sorry that was a simplified explanation above.

Ooops, my bad (should've read the patch more closely). Time offsets can't go
backwards if jiffies stays the same. As long as jiffies is changed, then the
patch has no effect. Got it.

-- 
Chris Friesen                    | MailStop: 043/33/F10  
Nortel Networks                  | work: (613) 765-0557
3500 Carling Avenue              | fax:  (613) 765-2986
Nepean, ON K2H 8E9 Canada        | email: cfriesen@nortelnetworks.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Feb 23 2002 - 21:00:16 EST