From: Alessandro Zummo <alessandro.zummo@towertech.it>
To: bryanh@giraffe-data.com (Bryan Henderson)
Cc: mpm@selenic.com, benh@kernel.crashing.org, ak@muc.de,
akpm@osdl.org, torvalds@osdl.org, davem@davemloft.net,
kkojima@rr.iij4u.or.jp, lethal@linux-sh.org, paulus@samba.org,
ralf@linux-mips.org, rmk@arm.linux.org.uk,
linux-kernel@vger.kernel.org, smurf@debian.org,
stenn@whimsy.udel.edu, bunk@stusta.de, lamont@debian.org
Subject: Re: 11 minute RTC update (was Re: Remove RTC UIP)
Date: Wed, 29 Mar 2006 20:07:58 +0200 [thread overview]
Message-ID: <20060329200758.2281149b@inspiron> (raw)
In-Reply-To: <52304.bryanh@giraffe-data.com>
On 29 Mar 2006 16:49:41 +0000
bryanh@giraffe-data.com (Bryan Henderson) wrote:
> Concerning migration: ntpd presently tells the kernel to go into 11
> minute mode (I think technically, it tells the kernel that it is
> keeping the system time accurate and based on that information, the
> kernel takes the opportunity to keep the hardware clock accurate as
> well, but I think it's practically equivalent). So that suggests a
> migration path: Step 1: ntpd stops using that flag; Step 2: kernel
> issues warning if someone uses the flag; Step 3: kernel ignores the
> flag. For 1), ntpd issues a warning that nobody's minding the
> hardware clock unless you pass an option telling it to do hwclock
> --systohc or that you're handling the issue and ntpd needn't warn you
> about it. I like the latter better.
I agree with the latter option. I can write a patch for the kernel
to issue the warning.
> BTW, I am the maintainer of hwclock. This is the first I've heard of
> this discussion, but I have always been a supporter of the kernel
> getting out of the hardware clock maintenance business. What's this
> about multiple RTC's?
with the new subsystem that has recently been introduced you can
have more than one clock. the first one is /dev/rtc0 . udev
will make a link from /dev/rtc to /dev/rtc0, but it would be
fine if hwclock can check /dev/rtc0 itself in no device is specified
on the cmd line.
One can have a mix of I2C clocks, x86 and maybe external radio
syncronized clocks all in the same subsystem.
But there's a problem. hwclock waits for the second
to change before setting the time. It may happen, with some i2c clocks,
that the oscillator is disabled and that it is started when the
time is set. Some other devices simply hang and may be restarted only by setting
the time.
It would be fine if hwclock can wait for the second to change only
for a definite amount of time and then always try to set the time.
It may also happen that reading the time from the device returns
a failure due to a stopped clock. hwclock should ignore the error.
--
Best regards,
Alessandro Zummo,
Tower Technologies - Turin, Italy
http://www.towertech.it
next prev parent reply other threads:[~2006-03-29 18:08 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200603270920.k2R9KYYx007214@shell0.pdx.osdl.net>
[not found] ` <20060327111836.GA79131@muc.de>
[not found] ` <20060327163218.GD3642@waste.org>
[not found] ` <20060327190037.GB27030@muc.de>
[not found] ` <20060327211143.55ef7c4e@inspiron>
[not found] ` <1143512075.2284.2.camel@localhost.localdomain>
[not found] ` <20060329000215.683eb2d5@inspiron>
2006-03-29 0:03 ` Matt Mackall
2006-03-29 1:11 ` Alessandro Zummo
2006-03-29 1:21 ` Matt Mackall
2006-03-29 1:45 ` Alessandro Zummo
2006-03-29 16:49 ` Bryan Henderson
2006-03-29 18:07 ` Alessandro Zummo [this message]
2006-03-30 3:51 ` Bryan Henderson
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=20060329200758.2281149b@inspiron \
--to=alessandro.zummo@towertech.it \
--cc=ak@muc.de \
--cc=akpm@osdl.org \
--cc=benh@kernel.crashing.org \
--cc=bryanh@giraffe-data.com \
--cc=bunk@stusta.de \
--cc=davem@davemloft.net \
--cc=kkojima@rr.iij4u.or.jp \
--cc=lamont@debian.org \
--cc=lethal@linux-sh.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mpm@selenic.com \
--cc=paulus@samba.org \
--cc=ralf@linux-mips.org \
--cc=rmk@arm.linux.org.uk \
--cc=smurf@debian.org \
--cc=stenn@whimsy.udel.edu \
--cc=torvalds@osdl.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
all inboxes | Powered by JetHome®