Re: [PATCH 0/2][RFC] Potential fix for leapsecond caused futex issue (v2)
Re: [PATCH 0/2][RFC] Potential fix for leapsecond caused futex issue (v2)
Posted Jul 3, 2012 14:19 UTC (Tue) by Tobu (subscriber, #24111)In reply to: Re: [PATCH 0/2][RFC] Potential fix for leapsecond caused futex issue (v2) by chloe_zen
Parent article: Re: [PATCH 0/2][RFC] Potential fix for leapsecond caused futex issue (v2)
NTP merely informs the kernel (using adjtimex) that a leap second is being inserted. The kernel implementation makes an internal timestamp jump, but that's because the kernel counts using POSIX timestamps, which is an implementation decision. If the kernel's internal timekeeping used TAI, the kernel would cross-reference the adjtimex notification with some sort of leap seconds table, which it would use whenever it needs to come up with a POSIX timestamp (for much of its ABI including protocols, filesystem formats, and system calls). NTP is agnostic about how the kernel clock is run.
