This patchset enables a full rtc synchronization via ntp on x86. The current codebase (plus http://marc.info/?l=linux-kernel&m=136036689219340&w=2, which is queued for tip), will attempt to synchronize the rtc to the system time every 11 minutes if ntp is running. The problem in the current code is that the synchronization will only occur if the system time is within +/-15 minutes of the current rtc time. ie) we only do a "partial" synchronization of the rtc. Other architectures do full synchronizations and the partial sync appears to be a software limitation. This patchset introduces a full synchronization of the rtc, and allows the writing of the rtc date and time via sysfs (read for date and time is already implemented). I tested this patch by using the write capability introduced in 2/2 to write in older and newer dates into the rtc, and then rebooting with ntpdate, and/or ntpdate enabled and verifying the correct setting of the hwclock (and system time) via calls to date and hwclock (all on 64-bit x86) I have not tested the mrst/vrtc.c code, however, code inspection indicates that the only change required is the year offset of 1972. I booted 32-bit Fedora 18 on an UEFI system and confirmed that the system time and hwclock were now correct at boot. Signed-off-by: Prarit Bhargava <prarit@xxxxxxxxxx> Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx> Cc: John Stultz <john.stultz@xxxxxxxxxx> Cc: x86@xxxxxxxxxx Cc: Matt Fleming <matt.fleming@xxxxxxxxx> Cc: David Vrabel <david.vrabel@xxxxxxxxxx> Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Cc: Andi Kleen <ak@xxxxxxxxxxxxxxx> Cc: linux-efi@xxxxxxxxxxxxxxx Prarit Bhargava (2): x86, rtc, ntp, Do full rtc synchronization with ntp rtc, add write functionality to sysfs arch/x86/kernel/rtc.c | 69 ++++++---------------------------- arch/x86/platform/efi/efi.c | 24 ++++++++---- arch/x86/platform/mrst/vrtc.c | 41 ++++++++++++--------- drivers/rtc/rtc-sysfs.c | 86 ++++++++++++++++++++++++++++++++++++++++++- 4 files changed, 136 insertions(+), 84 deletions(-) -- 1.8.1.2 -- To unsubscribe from this list: send the line "unsubscribe linux-efi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html