[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1360861375-24131-1-git-send-email-prarit@redhat.com>
Date: Thu, 14 Feb 2013 12:02:53 -0500
From: Prarit Bhargava <prarit@...hat.com>
To: linux-kernel@...r.kernel.org
Cc: Prarit Bhargava <prarit@...hat.com>,
Thomas Gleixner <tglx@...utronix.de>,
John Stultz <john.stultz@...aro.org>, x86@...nel.org,
Matt Fleming <matt.fleming@...el.com>,
David Vrabel <david.vrabel@...rix.com>,
Andrew Morton <akpm@...ux-foundation.org>,
Andi Kleen <ak@...ux.intel.com>, linux-efi@...r.kernel.org
Subject: [RFE PATCH 0/2] x86, rtc, ntp, Enable full rtc synchronization
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@...hat.com>
Cc: Thomas Gleixner <tglx@...utronix.de>
Cc: John Stultz <john.stultz@...aro.org>
Cc: x86@...nel.org
Cc: Matt Fleming <matt.fleming@...el.com>
Cc: David Vrabel <david.vrabel@...rix.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>
Cc: Andi Kleen <ak@...ux.intel.com>
Cc: linux-efi@...r.kernel.org
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-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists