mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
Call init_workqueues before pre smp initcalls.
This allows to create workqueues from within the context of a pre smp initcall (aka early_initcall). Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
f44dd164f3
commit
a802dd0eb5
1 changed files with 2 additions and 2 deletions
|
@ -767,8 +767,6 @@ static void __init do_initcalls(void)
|
|||
static void __init do_basic_setup(void)
|
||||
{
|
||||
rcu_init_sched(); /* needed by module_init stage. */
|
||||
/* drivers will send hotplug events */
|
||||
init_workqueues();
|
||||
usermodehelper_init();
|
||||
driver_init();
|
||||
init_irq_proc();
|
||||
|
@ -852,6 +850,8 @@ static int __init kernel_init(void * unused)
|
|||
|
||||
cad_pid = task_pid(current);
|
||||
|
||||
init_workqueues();
|
||||
|
||||
smp_prepare_cpus(setup_max_cpus);
|
||||
|
||||
do_pre_smp_initcalls();
|
||||
|
|
Loading…
Reference in a new issue