timekeeping: Introduce timekeeper ID
authorAnna-Maria Behnsen <anna-maria@linutronix.de>
Mon, 19 May 2025 08:33:19 +0000 (10:33 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 19 Jun 2025 12:28:22 +0000 (14:28 +0200)
commitf12b45862c4dcb9c2937b83ed730e473b9a76cbf
treedc98d49d811b0abf36e864640712307f0de41fdf
parent7e55b6ba1fe6987638160e5f8216288f38043759
timekeeping: Introduce timekeeper ID

As long as there is only a single timekeeper, there is no need to clarify
which timekeeper is used. But with the upcoming reusage of the timekeeper
infrastructure for auxiliary clock timekeepers, an ID is required to
differentiate.

Introduce an enum for timekeeper IDs, introduce a field in struct tk_data
to store this timekeeper id and add also initialization. The id struct
field is added at the end of the second cachline, as there is a 4 byte hole
anyway.

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.842476378@linutronix.de
include/linux/timekeeper_internal.h
kernel/time/timekeeping.c