Re: [pm] fix time after suspend-to-*

From: Pavel Machek
Date: Fri Oct 24 2003 - 02:50:50 EST


Hi!

> > Uh, not moving jiffies? What does this say about any timers that may be
> > pending? Say for cron or some such? Like I said, I picked up this thread a bit
> > late, but, seems to me that if time is passing, it should pass on both the
> > jiffies AND the wall clocks.
>
> My understanding is that we are suspending the box (ie: putting your
> laptop to sleep/hybernate), so for all practical purposes the box is off
> waiting until it is woken up. During that time I don't believe we
> receive timer interrupts. When we are woken up, we should update the
> system time and continue, but as the box wasn't running during the
> interim we shouldn't be increasing the notion of monotonic time.

No timer interrupts, definitely. Machine is powered off.

> Pavel: You new patch looks ok wrt the locking issue. I'm still pretty
> suspicious of the clock_cmos_diff but I'll trust you that it does the
> right thing (this has been tested, right? :)

It worked in apm, it should work now, and yes I did some tests.

Pavel

--
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/