Re: [PATCH 2/3] powermac: proper time of day after resume
From: Segher Boessenkool <hidden>
Date: 2007-01-24 14:24:06
From: Segher Boessenkool <hidden>
Date: 2007-01-24 14:24:06
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