[PATCH 0/4] timekeeping: Avoid some runtime conditionals if CONFIG_POSIX_AUX_CLOCKS is disabled
From: Thomas Weißschuh (Schneider Electric)
Date: Wed Aug 12 2026 - 11:18:06 EST
Some of the conditionals around auxiliary timekeepers are always true if
CONFIG_POSIX_AUX_CLOCKS is disabled. Introduce and use some helpers to avoid
the runtime overhead.
Signed-off-by: Thomas Weißschuh (Schneider Electric) <thomas.weissschuh@xxxxxxxxxxxxx>
---
Thomas Weißschuh (Schneider Electric) (4):
timekeeping: Move timekeeper_is_core_tk() up in the file
timekeeping: Use timekeeper_is_core_tk() in timekeeping_update_on_shadow()
timekeeping: Remove tk_is_aux() and its usage
timekeeping: Introduce and use timekeeper_is_clock_valid()
kernel/time/timekeeping.c | 41 ++++++++++++++++++-----------------------
1 file changed, 18 insertions(+), 23 deletions(-)
---
base-commit: 4fa377c19e111c539a530a8200996b911ceff9ff
change-id: 20260701-timekeeping-conditionals-25e2d45d86d9
Best regards,
--
Thomas Weißschuh <thomas.weissschuh@xxxxxxxxxxxxx>