update system time after N900 resumes
authorDavid Fries <David@Fries.net>
Tue, 11 Sep 2012 02:44:52 +0000 (21:44 -0500)
committerPali Rohár <pali.rohar@gmail.com>
Fri, 25 Oct 2013 19:59:09 +0000 (21:59 +0200)
commit6df44d533109b451c061410a0fb529c7e357f1c1
tree5f9a86f71ea1d6cbc7f7dcca8e759f29d12404cf
parent301dafca91c9524db9b46634f1420498139ac915
update system time after N900 resumes

Currently nothing updates the system clock after a suspend to memory
operation, and date shows that almost no time elapsed.
As ARM doesn't have a specific read_persistent_clock the default
returns 0.  The RTC rtc_suspend/rtc_resume will set the clock after
resume, but requires CONFIG_RTC_HCTOSYS_DEVICE to be set, but that
requires RTC to be compiled into the kernel.

This splits up the configuration for setting the system time on bootup
from setting the time on resume.  This allows RTC_CLASS to be compiled
as a module if the system needs the RTC for resume, but not for boot,
which is the case for the N900.
kernel-power-2.6.28/debian/patches/resume_use_rtc_clock.diff [new file with mode: 0644]
kernel-power-2.6.28/debian/patches/series