Skip to content

Commit

Permalink
Call init_workqueues before pre smp initcalls.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Heiko Carstens authored and Rusty Russell committed Oct 21, 2008
1 parent f44dd16 commit a802dd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions init/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit a802dd0

Please sign in to comment.