]> git.ipfire.org Git - thirdparty/linux.git/commit
workqueue: use NR_STD_WORKER_POOLS instead of hardcoded value
authorManinder Singh <maninder1.s@samsung.com>
Tue, 7 Apr 2026 03:42:15 +0000 (09:12 +0530)
committerTejun Heo <tj@kernel.org>
Tue, 7 Apr 2026 18:13:19 +0000 (08:13 -1000)
commit034db4dd4449c556705e6b32bc07bd31df3889ba
tree87036d6e0f732877c509dd3d07a16d4ef9f01c3b
parentc6890f36fc49848c61d2113a3442eb1b59e0bc4b
workqueue: use NR_STD_WORKER_POOLS instead of hardcoded value

use NR_STD_WORKER_POOLS for irq_work_fns[] array definition.
NR_STD_WORKER_POOLS is also 2, but better to use MACRO.
Initialization loop for_each_bh_worker_pool() also uses same MACRO.

Signed-off-by: Maninder Singh <maninder1.s@samsung.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/workqueue.c