Re: [PATCH] ntp: Allow TAI-UTC offset to be set to zero

2019-04-18 Thread Ondrej Mosnacek
On Thu, Apr 18, 2019 at 11:07 AM Thomas Gleixner wrote: > On Thu, 18 Apr 2019, Miroslav Lichvar wrote: > > On Wed, Apr 17, 2019 at 11:00:23AM +0200, Ondrej Mosnacek wrote: > > > On Wed, Apr 17, 2019 at 10:48 AM Miroslav Lichvar > > > wrote: > > > > Change the ADJ_TAI check to accept zero as a va

Re: [PATCH] ntp: Allow TAI-UTC offset to be set to zero

2019-04-18 Thread Thomas Gleixner
On Thu, 18 Apr 2019, Miroslav Lichvar wrote: > On Wed, Apr 17, 2019 at 11:00:23AM +0200, Ondrej Mosnacek wrote: > > On Wed, Apr 17, 2019 at 10:48 AM Miroslav Lichvar > > wrote: > > > Change the ADJ_TAI check to accept zero as a valid TAI-UTC offset in > > > order to allow setting it back to the i

Re: [PATCH] ntp: Allow TAI-UTC offset to be set to zero

2019-04-18 Thread Miroslav Lichvar
On Wed, Apr 17, 2019 at 11:00:23AM +0200, Ondrej Mosnacek wrote: > On Wed, Apr 17, 2019 at 10:48 AM Miroslav Lichvar wrote: > > Change the ADJ_TAI check to accept zero as a valid TAI-UTC offset in > > order to allow setting it back to the initial value. > Thanks for sending the patch! Maybe you (

Re: [PATCH] ntp: Allow TAI-UTC offset to be set to zero

2019-04-17 Thread Ondrej Mosnacek
On Wed, Apr 17, 2019 at 10:48 AM Miroslav Lichvar wrote: > The ADJ_TAI adjtimex mode sets the TAI-UTC offset of the system clock. > It is typically set by NTP/PTP implementations and it is automatically > updated by the kernel on leap seconds. The initial value is zero (which > applications may in

[PATCH] ntp: Allow TAI-UTC offset to be set to zero

2019-04-17 Thread Miroslav Lichvar
The ADJ_TAI adjtimex mode sets the TAI-UTC offset of the system clock. It is typically set by NTP/PTP implementations and it is automatically updated by the kernel on leap seconds. The initial value is zero (which applications may interpret as unknown), but this value cannot be set by adjtimex. Thi