Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1339740

Re: [PATCH] rtc: Add an option to invalidate dates in 2038

From Alexandre Belloni <alexandre.belloni@free-electrons.com>
Newsgroups linux.kernel
Subject Re: [PATCH] rtc: Add an option to invalidate dates in 2038
Date 2016-02-22 18:10 +0100
Message-ID <r529J-AD-31@gated-at.bofh.it> (permalink)
References <r4leq-23T-1@gated-at.bofh.it> <r50Ui-7Ny-17@gated-at.bofh.it> <r513X-7RT-1@gated-at.bofh.it> <r51nk-8j5-23@gated-at.bofh.it> <r51Qn-95-39@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 22/02/2016 at 11:41:01 -0500, Austin S. Hemmelgarn wrote :
> On 2016-02-22 11:18, Arnd Bergmann wrote:
> >On Monday 22 February 2016 16:56:53 Alexandre Belloni wrote:
> >>One other workaround is to asked distributions
> >>using systemd to stop using HCTOSYS so userspace would be responsible to
> >>set the system time and in that case we won't have the 32/64 discrepancy.
> >
> >I'm missing a bit of background here. This seems like a fairly useful
> >piece of infrastructure for the majority of the use cases (working RTC)
> >
> >How would the time get set when this is disabled? Is systemd able
> >to read the rtc and write it back to the kernel? That could in fact
> >be a nicer workaround for the problem, if it just does this before
> >setting up the timerfd.
> Traditional init systems on Linux have the option of using hwclock from
> util-linux to set the system time.  This is what Gentoo does by default, and
> I think Arch does it too, and I'm relatively certain that Debian and Ubuntu
> used to do it before they switched to systemd (I have no idea what they do
> now).  Based on the manpage for hwclock, it looks like systemd mandates that
> HCTOSYS is enabled in the kernel configuration, and then just calls hwclock
> to set the system timezone and correct for UTC.

I'm not sure it mandates HCTOSYS. On debian there is a udev rule that
needs the system time to already be set but from my point of view, it
doesn't matter whether it is from hwclock or HCTOSYS. systemd already
seems to read the RTC so it may as well set the system time if it needs
it.


-- 
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] rtc: Add an option to invalidate dates in 2038 Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2016-02-20 20:20 +0100
  Re: [PATCH] rtc: Add an option to invalidate dates in 2038 One Thousand Gnomes <gnomes@lxorguk.ukuu.org.uk> - 2016-02-20 20:50 +0100
    Re: [PATCH] rtc: Add an option to invalidate dates in 2038 Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2016-02-20 21:50 +0100
      Re: [PATCH] rtc: Add an option to invalidate dates in 2038 Arnd Bergmann <arnd@arndb.de> - 2016-02-20 23:20 +0100
        Re: [PATCH] rtc: Add an option to invalidate dates in 2038 Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2016-02-21 00:20 +0100
          Re: [PATCH] rtc: Add an option to invalidate dates in 2038 Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2016-02-21 00:50 +0100
          Re: [PATCH] rtc: Add an option to invalidate dates in 2038 One Thousand Gnomes <gnomes@lxorguk.ukuu.org.uk> - 2016-02-21 18:30 +0100
            Re: [PATCH] rtc: Add an option to invalidate dates in 2038 Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2016-02-22 14:10 +0100
              Re: [PATCH] rtc: Add an option to invalidate dates in 2038 One Thousand Gnomes <gnomes@lxorguk.ukuu.org.uk> - 2016-02-22 14:50 +0100
                Re: [PATCH] rtc: Add an option to invalidate dates in 2038 Arnd Bergmann <arnd@arndb.de> - 2016-02-22 16:50 +0100
                Re: [PATCH] rtc: Add an option to invalidate dates in 2038 Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2016-02-22 17:00 +0100
                Re: [PATCH] rtc: Add an option to invalidate dates in 2038 Arnd Bergmann <arnd@arndb.de> - 2016-02-22 17:20 +0100
                Re: [PATCH] rtc: Add an option to invalidate dates in 2038 Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2016-02-22 17:50 +0100
                Re: [PATCH] rtc: Add an option to invalidate dates in 2038 "Austin S. Hemmelgarn" <ahferroin7@gmail.com> - 2016-02-22 17:50 +0100
                Re: [PATCH] rtc: Add an option to invalidate dates in 2038 Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2016-02-22 18:10 +0100

csiph-web