mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 03:23:53 -04:00
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
This commit is contained in:
committed by
Thomas Gleixner
parent
f12b45862c
commit
9094c72c3d
@@ -13,11 +13,17 @@
|
||||
|
||||
/**
|
||||
* timekeeper_ids - IDs for various time keepers in the kernel
|
||||
* @TIMEKEEPER_CORE: The central core timekeeper managing system time
|
||||
* @TIMEKEEPERS_MAX: The maximum number of timekeepers managed
|
||||
* @TIMEKEEPER_CORE: The central core timekeeper managing system time
|
||||
* @TIMEKEEPER_AUX_FIRST: The first AUX timekeeper
|
||||
* @TIMEKEEPER_AUX_LAST: The last AUX timekeeper
|
||||
* @TIMEKEEPERS_MAX: The maximum number of timekeepers managed
|
||||
*/
|
||||
enum timekeeper_ids {
|
||||
TIMEKEEPER_CORE,
|
||||
#ifdef CONFIG_POSIX_AUX_CLOCKS
|
||||
TIMEKEEPER_AUX_FIRST,
|
||||
TIMEKEEPER_AUX_LAST = TIMEKEEPER_AUX_FIRST + MAX_AUX_CLOCKS - 1,
|
||||
#endif
|
||||
TIMEKEEPERS_MAX,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user