summaryrefslogtreecommitdiff
path: root/kernel/time/Kconfig
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@kernel.org>2026-02-24 17:36:45 +0100
committerPeter Zijlstra <peterz@infradead.org>2026-02-27 16:40:08 +0100
commit89f951a1e8ad781e7ac70eccddab0e0c270485f9 (patch)
treeaf97b4337cb404c048dcc2f908b698a7eed7d61e /kernel/time/Kconfig
parentcd38bdb8e696a1a1eb12fc6662a6e420977aacfd (diff)
downloadlinux-next-89f951a1e8ad781e7ac70eccddab0e0c270485f9.tar.gz
linux-next-89f951a1e8ad781e7ac70eccddab0e0c270485f9.zip
clockevents: Provide support for clocksource coupled comparators
Some clockevent devices are coupled to the system clocksource by implementing a less than or equal comparator which compares the programmed absolute expiry time against the underlying time counter. The timekeeping core provides a function to convert and absolute CLOCK_MONOTONIC based expiry time to a absolute clock cycles time which can be directly fed into the comparator. That spares two time reads in the next event progamming path, one to convert the absolute nanoseconds time to a delta value and the other to convert the delta value back to a absolute time value suitable for the comparator. Provide a new clocksource callback which takes the absolute cycle value and wire it up in clockevents_program_event(). Similar to clocksources allow architectures to inline the rearm operation. Signed-off-by: Thomas Gleixner <tglx@kernel.org> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://patch.msgid.link/20260224163430.010425428@kernel.org
Diffstat (limited to 'kernel/time/Kconfig')
-rw-r--r--kernel/time/Kconfig4
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/time/Kconfig b/kernel/time/Kconfig
index b51bc5625129..e1968ab8b37f 100644
--- a/kernel/time/Kconfig
+++ b/kernel/time/Kconfig
@@ -50,6 +50,10 @@ config GENERIC_CLOCKEVENTS_MIN_ADJUST
config GENERIC_CLOCKEVENTS_COUPLED
bool
+config GENERIC_CLOCKEVENTS_COUPLED_INLINE
+ select GENERIC_CLOCKEVENTS_COUPLED
+ bool
+
# Generic update of CMOS clock
config GENERIC_CMOS_UPDATE
bool