On Wed, Apr 24, 2013 at 4:43 AM, John Stultz <john.stultz@xxxxxxxxxx> wrote:On x86 the persistent_clock() is backed by the CMOS/EFI/kvm-wall/xen/vrtc clock (all via x86_platform.get_wallclock) should be present and we'll initialize the time in timekeeping_init() there.On 04/23/2013 06:34 PM, Kay Sievers wrote:Right, and RTC_HCTOSYS is not NTP related. It just reads the time fromHey,
what's the intention of:
e90c83f757fffdacec8b3c5eee5617dcc038338f ?
x86: Select HAS_PERSISTENT_CLOCK on x86
It unconditionally sets:
HAS_PERSISTENT_CLOCK
but:
RTC_SYSTOHC
got a depends on !HAS_PERSISTENT_CLOCK
This makes it impossible to sync the system time from the RTC on x86.
What's going on here?
So I suspect just some confusion, but let me know if thats wrong and you're
actually seeing an issue.
SYSTOHC is what *sets the RTC* to the system time when we're synced with
NTP.
HCTOSYS is what sets the system time from the RTC.
the RTC_HCTOSYS_DEVICE at bootup so we do not boot in 1970 time mode.
We need that it in all cases, at every bootup on x86. But it's no
longer there with the above commits. :)