1 From 517cd3032fa424c6b79e26858b0457cb5bfae7dd Mon Sep 17 00:00:00 2001
2 From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
3 Date: Wed, 3 Apr 2024 16:29:12 +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 9fc557d489f8163c1aabcb89114b8eba960f4097 which is commit
9 15930da42f8981dc42c19038042947b475b19f47 upstream.
11 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
13 kernel/workqueue.c | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
16 --- a/kernel/workqueue.c
17 +++ b/kernel/workqueue.c
18 @@ -1506,7 +1506,7 @@ static void wq_update_node_max_active(st
20 lockdep_assert_held(&wq->mutex);
22 - if (off_cpu >= 0 && !cpumask_test_cpu(off_cpu, effective))
23 + if (!cpumask_test_cpu(off_cpu, effective))
26 total_cpus = cpumask_weight_and(effective, cpu_online_mask);