[PATCH 0/4] timekeeping: Avoid some runtime conditionals if CONFIG_POSIX_AUX_CLOCKS is disabled
Thomas Weißschuh (Schneider Electric) <[email protected]>
| Newsgroups | org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <20260812-timekeeping-conditionals-v1-0-75ebe366677d@linutronix.de> |
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) <[email protected]> --- 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 <[email protected]>