Re: New kernel interface for sys_tz and timewarp?

From: Alexandre Belloni
Date: Tue Aug 20 2019 - 14:48:03 EST


On 19/08/2019 15:43:03+0200, Thomas Gleixner wrote:
> On Mon, 19 Aug 2019, Karel Zak wrote:
> > On Wed, Aug 14, 2019 at 11:32:08AM +0200, Alexandre Belloni wrote:
> > > On 14/08/2019 11:09:36+0200, Lennart Poettering wrote:
> > > > On Mi, 14.08.19 10:31, Arnd Bergmann (arnd@xxxxxxxx) wrote:
> > > >
> > > > > - glibc stops passing the caller timezone argument to the kernel
> > > > > - the distro kernel disables CONFIG_RTC_HCTOSYS,
> > > > > CONFIG_RTC_SYSTOHC and CONFIG_GENERIC_CMOS_UPDATE
> > > >
> > > > What's the benefit of letting userspace do this? It sounds a lot more
> > > > fragile to leave this syncing to userspace if the kernel can do this
> > > > trivially on its own.
> >
> > Good point, why CONFIG_RTC_SYSTOHC has been added to the kernel?
>
> 023f333a99ce ("NTP: Add a CONFIG_RTC_SYSTOHC configuration")

This answers only half the question. The follow up is then why do we
need update_persistent_clock?

--
Alexandre Belloni, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com