On Fri, 2008-12-12 at 15:02 +0000, Andy Green wrote: > | If we can't fix the system clock, could we restore it from the hw clock > | during resume? > > Userspace should also be able to do it with > > hwclock --hctosys > > afterwards.
> I guess what is going on is the rtc driver is restoring the clock, but > there is no "time" passing until resume completes. If it is true, then > hwclock can be a reasonable solution. According to the kernel log timestamps, some time is passing during resume, just very little... Could this be some side effect of the full cpu utilization? In any case, if we can't keep time correctly during resume, the restore from hw clock should happen at the end of resuming. Of course it would be possible to work around it in userspace but that still feels wrong. ;) Jan
