diff options
Diffstat (limited to 'kernel/workqueue.c')
-rw-r--r-- | kernel/workqueue.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/workqueue.c b/kernel/workqueue.c index 1105c474073a..e2eb351d9152 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c | |||
@@ -3507,7 +3507,7 @@ out_unlock: | |||
3507 | } | 3507 | } |
3508 | #endif /* CONFIG_FREEZER */ | 3508 | #endif /* CONFIG_FREEZER */ |
3509 | 3509 | ||
3510 | void __init init_workqueues(void) | 3510 | static int __init init_workqueues(void) |
3511 | { | 3511 | { |
3512 | unsigned int cpu; | 3512 | unsigned int cpu; |
3513 | int i; | 3513 | int i; |
@@ -3559,4 +3559,6 @@ void __init init_workqueues(void) | |||
3559 | system_unbound_wq = alloc_workqueue("events_unbound", WQ_UNBOUND, | 3559 | system_unbound_wq = alloc_workqueue("events_unbound", WQ_UNBOUND, |
3560 | WQ_UNBOUND_MAX_ACTIVE); | 3560 | WQ_UNBOUND_MAX_ACTIVE); |
3561 | BUG_ON(!system_wq || !system_long_wq || !system_nrt_wq); | 3561 | BUG_ON(!system_wq || !system_long_wq || !system_nrt_wq); |
3562 | return 0; | ||
3562 | } | 3563 | } |
3564 | early_initcall(init_workqueues); | ||