time: Introduce auxiliary POSIX clocks
authorAnna-Maria Behnsen <anna-maria@linutronix.de>
Mon, 19 May 2025 08:33:20 +0000 (10:33 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 19 Jun 2025 12:28:22 +0000 (14:28 +0200)
commit9094c72c3d81bf2416b7c79d12c8494ab8fbac20
treefcc75df4a0607f171276a975076cf2fcc803d166
parentf12b45862c4dcb9c2937b83ed730e473b9a76cbf
time: Introduce auxiliary POSIX clocks

To support auxiliary timekeeping and the related user space interfaces,
it's required to define a clock ID range for them.

Reserve 8 auxiliary clock IDs after the regular timekeeping clock ID space.

This is the maximum number of auxiliary clocks the kernel can support. The actual
number of supported clocks depends obviously on the presence of related devices
and might be constraint by the available VDSO space.

Add the corresponding timekeeper IDs as well.

Signed-off-by: Anna-Maria Behnsen <anna-maria@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: John Stultz <jstultz@google.com>
Link: https://lore.kernel.org/all/20250519083025.905800695@linutronix.de
include/linux/timekeeper_internal.h
include/uapi/linux/time.h
kernel/time/Kconfig