aboutsummaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-05-08 03:25:27 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-05-08 03:25:27 -0700
commit25714ddf854ce2d63c94a7b1cc931aee73867045 (patch)
tree3f5f980908b56b88af722b6ac0cb1f55e03d5459 /init
parent08faf52b10f9f091e6c83b3f363afc6c2571ee5a (diff)
downloadhistory-25714ddf854ce2d63c94a7b1cc931aee73867045.tar.gz
[PATCH] run populate_rootfs() before initcalls
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.
Diffstat (limited to 'init')
-rw-r--r--init/main.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/init/main.c b/init/main.c
index 84cf96dddf4e6c..77e962511616e6 100644
--- a/init/main.c
+++ b/init/main.c
@@ -596,9 +596,15 @@ static int init(void * unused)
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