Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Heiko Carstens and committed by
Rusty Russell
a802dd0e f44dd164

+2 -2
+2 -2
init/main.c
··· 767 767 static void __init do_basic_setup(void) 768 768 { 769 769 rcu_init_sched(); /* needed by module_init stage. */ 770 - /* drivers will send hotplug events */ 771 - init_workqueues(); 772 770 usermodehelper_init(); 773 771 driver_init(); 774 772 init_irq_proc(); ··· 849 851 init_pid_ns.child_reaper = current; 850 852 851 853 cad_pid = task_pid(current); 854 + 855 + init_workqueues(); 852 856 853 857 smp_prepare_cpus(setup_max_cpus); 854 858