From: Gabriel Paubert <paubert@iram.es>
To: David Woodhouse <dwmw2@infradead.org>
Cc: David Brownell <david-b@pacbell.net>,
Alessandro Zummo <a.zummo@towertech.it>,
Paul Mundt <lethal@linux-sh.org>,
rtc-linux@googlegroups.com, linuxppc-dev@ozlabs.org
Subject: Re: [RFC PATCH] rtc: add rtc_systohc for ntp use
Date: Tue, 11 Nov 2008 18:17:34 +0100 [thread overview]
Message-ID: <20081111171734.GA17886@iram.es> (raw)
In-Reply-To: <1226412639.4367.256.camel@macbook.infradead.org>
On Tue, Nov 11, 2008 at 02:10:39PM +0000, David Woodhouse wrote:
> On Mon, 2008-11-10 at 16:40 +0100, Alessandro Zummo wrote:
> > Adds in-kernel hctosys functionality that can
> > be used by ntp sync code.
> >
> > This is an RFC and has not been tested, I just want
> > to check if something similar could solve the problems
> > of those who want the NTP sync mode.
>
> You might do better to open the device once and keep it open, rather
> than taking the mutex and opening it again _during_ each call? You're
> going to be perturbing the timing by doing that.
>
> I believe you were also concerned that some device wouldn't want the
> behaviour given by the existing sync_cmos_clock() function and workqueue
> stuff in kernel/ntp.c, where we update the clock precisely half-way
> through the second?
FYI, the RTC that are in my PPC machines definitely want an update
on the whole second, within a few hundred microseconds that is, since
it seems that not all LSB bits are reset by a write of the time: the
jitter is much higher than the 31µs peak-peak you'd expect from a 32768Hz
crystal but I can't remember how much I found.
Regards,
Gabriel
next prev parent reply other threads:[~2008-11-11 17:17 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-10 15:40 [RFC PATCH] rtc: add rtc_systohc for ntp use Alessandro Zummo
2008-11-10 22:57 ` David Brownell
2008-11-10 23:05 ` Alessandro Zummo
2008-11-11 14:10 ` David Woodhouse
2008-11-11 17:17 ` Gabriel Paubert [this message]
2008-11-11 18:11 ` [rtc-linux] " Alessandro Zummo
2008-11-11 20:58 ` David Brownell
2008-11-12 8:05 ` Gabriel Paubert
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=20081111171734.GA17886@iram.es \
--to=paubert@iram.es \
--cc=a.zummo@towertech.it \
--cc=david-b@pacbell.net \
--cc=dwmw2@infradead.org \
--cc=lethal@linux-sh.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=rtc-linux@googlegroups.com \
/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).