Linux RTC
 help / color / mirror / Atom feed
From: J William Piggott <elseifthen@gmx.com>
To: Russell King - ARM Linux <linux@armlinux.org.uk>,
	Alexandre Belloni <alexandre.belloni@free-electrons.com>
Cc: Jason Gunthorpe <jgg@mellanox.com>,
	John Stultz <john.stultz@linaro.org>,
	linux-arm-kernel@lists.infradead.org,
	Thomas Gleixner <tglx@linutronix.de>,
	Stephen Boyd <sboyd@codeaurora.org>,
	Alessandro Zummo <a.zummo@towertech.it>,
	linux-rtc@vger.kernel.org
Subject: Re: [PATCH] rtc: Allow rtc drivers to specify the tv_nsec value for ntp
Date: Thu, 23 Nov 2017 19:13:58 -0500	[thread overview]
Message-ID: <f034d236-22e2-57d9-1d64-2b2821ba1839@gmx.com> (raw)
In-Reply-To: <20171123125300.GO31757@n2100.armlinux.org.uk>



On 11/23/2017 07:53 AM, Russell King - ARM Linux wrote:
> On Thu, Nov 23, 2017 at 01:04:51PM +0100, Alexandre Belloni wrote:
>>

 8<

>> But nothing prevents you from using hwclock every 11 minutes from
>> userspace. I really don't think this should be done from the kernel.
> 
> It's not just about running hwclock every 11 minutes.  It's about
> running hwclock when NTP sync'd.  If the local clock is not sync'd
> you don't want to be running hwclock, especially if you've trimmed
> the RTC.  So merely throwing hwclock -uw into a cron job really
> doesn't solve it.
> 
> A way around that would be to install adjtimex, so that the kernel's
> NTP flags can be read out.  However, that comes with its own set of
> problems.
> 
> On Debian, installing adjtimex will disrupt the timekeeping because
> of the post-install scripts debian runs.  It seems Debian assumes
> that if you install something, it has the right to modify the system
> timekeeping parameters immediately, screwing up ntpd in the process,
> if it's running.  The thought that you're installing adjtimex because
> you want to _inspect_ the kernel ntp parameters is not one that
> Debian folk appear to have considered as being a reason for installing
> the package.
> 

IMO, adjtimex is broken anyway. Use ntptime, it should be included
in the ntp package:

 $ /usr/sbin/ntptime | grep status
  status 0x40 (UNSYNC),

'ntptime -f ppm' allows correcting the system clock. So adjtimex really
isn't needed anymore.

  reply	other threads:[~2017-11-24  0:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20171013175433.GA22062@obsidianresearch.com>
     [not found] ` <20171123095456.lkc4nkuzsd2q26mm@piout.net>
     [not found]   ` <20171123112338.GN31757@n2100.armlinux.org.uk>
2017-11-23 12:04     ` [PATCH] rtc: Allow rtc drivers to specify the tv_nsec value for ntp Alexandre Belloni
2017-11-23 12:53       ` Russell King - ARM Linux
2017-11-24  0:13         ` J William Piggott [this message]
2017-11-27 20:18         ` Alexandre Belloni
2017-11-27 20:29           ` Jason Gunthorpe
2017-11-28 10:03           ` Russell King - ARM Linux

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=f034d236-22e2-57d9-1d64-2b2821ba1839@gmx.com \
    --to=elseifthen@gmx.com \
    --cc=a.zummo@towertech.it \
    --cc=alexandre.belloni@free-electrons.com \
    --cc=jgg@mellanox.com \
    --cc=john.stultz@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-rtc@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=sboyd@codeaurora.org \
    --cc=tglx@linutronix.de \
    /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