move initramfs init before DSDT init
PATCH 1/2 move initramfs init before DSDT init
Hi,
This patch from Hannes Reinecke ([email protected]) moves initialisation of initramfs by some lines before the DSDT is parsed.
Thomas
-> linux-2.6.11-rc5
Subject: Call populate_rootfs() prior to acpi_early_init()
From: Hannes Reinecke <[email protected]>
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.
init/main.c renamed from init/main.c.orig +8 -8
@@ -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 ();/*