From b3afded935a8528d3df57198aaa90651995622c5 Mon Sep 17 00:00:00 2001 From: Zhan Xusheng Date: Mon, 6 Jul 2026 16:45:57 +0800 Subject: [PATCH] clocksource: Remove unused WATCHDOG_INTERVAL_NS macro WATCHDOG_INTERVAL_NS has been unused since it was introduced by commit 763aacf86f1b ("clocksource: Rewrite watchdog code completely"); the watchdog timer rearming uses WATCHDOG_INTERVAL (in jiffies) directly and the nanosecond variant has never had a user. Remove the dead macro. No functional change. Signed-off-by: Zhan Xusheng Signed-off-by: Thomas Gleixner Link: https://patch.msgid.link/20260706084557.3845091-3-zhanxusheng@xiaomi.com --- kernel/time/clocksource.c | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel/time/clocksource.c b/kernel/time/clocksource.c index e48c4d379a7c..78c91b0037f7 100644 --- a/kernel/time/clocksource.c +++ b/kernel/time/clocksource.c @@ -123,7 +123,6 @@ static atomic_t watchdog_reset_pending; /* Watchdog interval: 0.5sec. */ #define WATCHDOG_INTERVAL (HZ >> 1) -#define WATCHDOG_INTERVAL_NS (WATCHDOG_INTERVAL * (NSEC_PER_SEC / HZ)) /* Maximum time between two reference watchdog readouts */ #define WATCHDOG_READOUT_MAX_NS (50U * NSEC_PER_USEC)