Subject: Call populate_rootfs() prior to acpi_early_init() From: Hannes Reinecke populate_rootfs should be called prior to acpi_early_init() if we ever want to be able to use a custom DSDT from initramfs. Having done this, rootfs is available during acpi_early_init() and the ACPI code can just call sys_open() to load a custom DSDT. --- x/init/main.c.orig 2005-02-24 17:39:55.000000000 +0100 +++ y/init/main.c 2005-02-26 16:46:30.278718350 +0100 @@ -508,8 +508,6 @@ #endif check_bugs(); - acpi_early_init(); /* before LAPIC and SMP init */ - /* Do the rest non-__init'ed, we're now alive */ rest_init(); } @@ -635,6 +633,14 @@ */ child_reaper = current; + /* + * Do this before initcalls, because some drivers want to access + * firmware files. + */ + populate_rootfs(); + + acpi_early_init(); /* before LAPIC and SMP init */ + /* Sets up cpus_possible() */ smp_prepare_cpus(max_cpus); @@ -644,12 +650,6 @@ smp_init(); sched_init_smp(); - /* - * Do this before initcalls, because some drivers want to access - * firmware files. - */ - populate_rootfs(); - do_basic_setup(); /*