mirror of
https://github.com/torvalds/linux.git
synced 2026-05-12 16:18:45 +02:00
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>
This commit is contained in:
parent
c6890f36fc
commit
034db4dd44
|
|
@ -7900,8 +7900,8 @@ void __init workqueue_init_early(void)
|
|||
{
|
||||
struct wq_pod_type *pt = &wq_pod_types[WQ_AFFN_SYSTEM];
|
||||
int std_nice[NR_STD_WORKER_POOLS] = { 0, HIGHPRI_NICE_LEVEL };
|
||||
void (*irq_work_fns[2])(struct irq_work *) = { bh_pool_kick_normal,
|
||||
bh_pool_kick_highpri };
|
||||
void (*irq_work_fns[NR_STD_WORKER_POOLS])(struct irq_work *) =
|
||||
{ bh_pool_kick_normal, bh_pool_kick_highpri };
|
||||
int i, cpu;
|
||||
|
||||
BUILD_BUG_ON(__alignof__(struct pool_workqueue) < __alignof__(long long));
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user