From: Prarit Bhargava <prarit@redhat.com>
To: linux-kernel@vger.kernel.org
Cc: Prarit Bhargava <prarit@redhat.com>,
Thomas Gleixner <tglx@linutronix.de>,
John Stultz <john.stultz@linaro.org>,
x86@kernel.org, Matt Fleming <matt.fleming@intel.com>,
David Vrabel <david.vrabel@citrix.com>,
Andrew Morton <akpm@linux-foundation.org>,
Andi Kleen <ak@linux.intel.com>,
linux-efi@vger.kernel.org
Subject: [RFE PATCH 0/2] x86, rtc, ntp, Enable full rtc synchronization
Date: Thu, 14 Feb 2013 12:02:53 -0500 [thread overview]
Message-ID: <1360861375-24131-1-git-send-email-prarit@redhat.com> (raw)
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@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: John Stultz <john.stultz@linaro.org>
Cc: x86@kernel.org
Cc: Matt Fleming <matt.fleming@intel.com>
Cc: David Vrabel <david.vrabel@citrix.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: linux-efi@vger.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
next reply other threads:[~2013-02-14 17:03 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-14 17:02 Prarit Bhargava [this message]
2013-02-14 17:02 ` [RFE PATCH 1/2] x86, rtc, ntp, Do full rtc synchronization with ntp Prarit Bhargava
2013-02-22 20:42 ` John Stultz
2013-02-24 17:12 ` Prarit Bhargava
2013-02-25 15:04 ` Alessandro Zummo
2013-02-14 17:02 ` [RFE PATCH 2/2] rtc, add write functionality to sysfs Prarit Bhargava
2013-02-22 20:43 ` John Stultz
2013-02-22 20:55 ` Prarit Bhargava
2013-02-22 21:05 ` John Stultz
2013-02-23 23:11 ` Alessandro Zummo
2013-02-24 17:03 ` Prarit Bhargava
2013-02-25 14:58 ` Alessandro Zummo
2013-02-28 14:50 ` Prarit Bhargava
2013-02-28 18:51 ` John Stultz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1360861375-24131-1-git-send-email-prarit@redhat.com \
--to=prarit@redhat.com \
--cc=ak@linux.intel.com \
--cc=akpm@linux-foundation.org \
--cc=david.vrabel@citrix.com \
--cc=john.stultz@linaro.org \
--cc=linux-efi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=matt.fleming@intel.com \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).