Re: how long does it take to init the scheduler?

From: Andrew Morton
Date: Sat May 08 2004 - 06:01:19 EST


Olaf Hering <olh@xxxxxxx> wrote:
>
>
> Hi,
>
> the patch below looks wrong to me. Why did you move it to the very end
> of the boot process, instead to the very end of start_kernel()?
>

coz I forgot about drivers which want to go opening files in their
module_init().

Like this?

--- 25/init/main.c~populate_rootfs-before-initcalls 2004-05-08 03:57:54.168918048 -0700
+++ 25-akpm/init/main.c 2004-05-08 03:58:58.668112680 -0700
@@ -660,9 +660,15 @@ static int init(void * unused)
fixup_cpu_present_map();
smp_init();
sched_init_smp();
- 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

_

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/