[PATCH 0/2] timers: Remove dead code in hrtimer and clocksource

From: Zhan Xusheng

Date: Mon Jul 06 2026 - 05:40:05 EST


Two small dead-code removals in kernel/time, found while auditing for
unused function arguments and macros:

1/2 hrtimer: __hrtimer_reprogram() has a @next_timer argument that is
never used; the function only stores @expires_next and reprograms
the clock event device. Unused since commit b14bca97c9f5
("hrtimer: Consolidate reprogramming code").
2/2 clocksource: WATCHDOG_INTERVAL_NS has been unused since it was
added in commit 763aacf86f1b ("clocksource: Rewrite watchdog code
completely").

No functional change in either patch.

Zhan Xusheng (2):
hrtimer: Remove unused next_timer argument from __hrtimer_reprogram()
clocksource: Remove unused WATCHDOG_INTERVAL_NS macro

kernel/time/clocksource.c | 1 -
kernel/time/hrtimer.c | 6 +++---
2 files changed, 3 insertions(+), 4 deletions(-)

--
2.43.0