Re: [PATCH v9 12/13] rust: hrtimer: add clocksource selection through `ClockSource`

From: Thomas Gleixner
Date: Thu Feb 27 2025 - 04:24:31 EST


On Thu, Feb 27 2025 at 10:11, Thomas Gleixner wrote:
> On Mon, Feb 24 2025 at 13:03, Andreas Hindborg wrote:
>> + /// International Atomic Time.
>> + ///
>> + /// A nonsettable system-wide clock derived from wall-clock time but
>> + /// counting leap seconds. This clock does not experience discontinuities or
>> + /// frequency adjustments caused by inserting leap seconds as CLOCK_REALTIME
>> + /// does.
>
> Only partially correct.
>
> CLOCK_TAI can be set as CLOCK_TAI is obviously coupled to CLOCK_REALTIME
> and vice versa.

For clarification:

CLOCK_REALTIME (UTC) = CLOCK_TAI - sum(leap seconds since the epoch)

As of today thats 37 seconds.

Thanks,

tglx