diff --git a/kernel/workqueue.c b/kernel/workqueue.c index 884e92b31d53..572f4f635b10 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c @@ -6534,6 +6534,8 @@ notrace void wq_watchdog_touch(int cpu) { if (cpu >= 0) per_cpu(wq_watchdog_touched_cpu, cpu) = jiffies; + else + WARN_ONCE(1, "%s should be called with valid CPU", __func__); wq_watchdog_touched = jiffies; }