diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2024-06-25 14:42:44 +0300 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2024-06-25 19:55:16 +0300 |
commit | 18e24deb1cc92f2068ce7434a94233741fbd7771 (patch) | |
tree | eafb4ff843c01aefb3abb09b2fc518e4d1d3063e /kernel | |
parent | a071b043ab13ae1f5d12ba6f267936feb800dff8 (diff) | |
download | linux-18e24deb1cc92f2068ce7434a94233741fbd7771.tar.xz |
workqueue: wq_watchdog_touch is always called with valid CPU
Warn in the case it is called with cpu == -1. This does not appear
to happen anywhere.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/workqueue.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/workqueue.c b/kernel/workqueue.c index adf1893b161e..b032772bd144 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c @@ -7526,6 +7526,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; } |