I moved this a little too late - we need to run populate_rootfs() before
running initcalls because some driver initcalls need to open files for
firmware.
The populate_rootfs() call is still coming after init_idle(), so it won't
knock the scheduler over.
do_pre_smp_initcalls();
smp_init();
- do_basic_setup();
+ /*
+ * Do this before initcalls, because some drivers want to access
+ * firmware files.
+ */
populate_rootfs();
+
+ do_basic_setup();
+
/*
* check if there is an early userspace init. If yes, let it do all
* the work