1 From 408bc969ba46368c0c170f2ba822644c43ffe966 Mon Sep 17 00:00:00 2001
2 From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
3 Date: Wed, 3 Apr 2024 16:35:37 +0200
4 Subject: Revert "workqueue: Don't call cpumask_test_cpu() with -1 CPU in wq_update_node_max_active()"
6 From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 This reverts commit 7df62b8cca38aa452b508b477b16544cba615084 which is
10 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
12 kernel/workqueue.c | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
15 --- a/kernel/workqueue.c
16 +++ b/kernel/workqueue.c
17 @@ -1500,7 +1500,7 @@ static void wq_update_node_max_active(st
19 lockdep_assert_held(&wq->mutex);
21 - if (off_cpu >= 0 && !cpumask_test_cpu(off_cpu, effective))
22 + if (!cpumask_test_cpu(off_cpu, effective))
25 total_cpus = cpumask_weight_and(effective, cpu_online_mask);