]> git.hungrycats.org Git - linux/commitdiff
[PATCH] run populate_rootfs() before initcalls
authorAndrew Morton <akpm@osdl.org>
Sat, 8 May 2004 10:25:27 +0000 (03:25 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 8 May 2004 10:25:27 +0000 (03:25 -0700)
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.

init/main.c

index 84cf96dddf4e6c82d780e99b06a73e7ae6831acd..77e962511616e62cb6b3e748de5ee2d4a495c58d 100644 (file)
@@ -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