[PATCH 2/3] powermac: proper time of day after resume
Johannes Berg
johannes at sipsolutions.net
Wed Jan 24 19:46:52 EST 2007
On Wed, 2007-01-24 at 17:34 +1100, Benjamin Herrenschmidt wrote:
> On Wed, 2006-12-13 at 13:38 +0100, Johannes Berg wrote:
> > plain text document attachment (time-resume.patch)
> > This patch converts the time restore code from a PMU notifier to a regular
> > sys device so I can profit from it even when I don't suspend through the
> > PMU, i.e. suspend to disk.
> >
> > Also another step towards dropping pmu_sleep_notifier completely.
>
> I'd rather do it differently: On suspend, read the RTC and save the
> value. On resume, read it again, diff the values, and add that to the
> current time.
Alright, I can do that too, this simply shuffled the old code around.
Will have a look at it.
johannes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20070124/f1e8d2d1/attachment.pgp>
More information about the Linuxppc-dev
mailing list