[PATCH 2/3] powermac: proper time of day after resume

Segher Boessenkool segher at kernel.crashing.org
Thu Jan 25 01:23:47 EST 2007


> I believed that the patch also worked on desktops. Of course, one
> solution is to try to reset time from an NTP server on resume if you
> are connected (if you are not, then an error of a fraction of a second
> is less serious).

A fraction of a second is *never* serious, except with
broken apps ;-)

> The best solution may require informing the user space ntp code of
> such events. This requires very likely modifications to ntp itself
> (I may be wrong, I've not looked at NTP code for 5 years or so).

Doesn't the kernel send signals to init on suspend/resume
events, just like with power fail events?  You can hook on
that.


Segher




More information about the Linuxppc-dev mailing list