* [PATCH] [1/2 DSDT via initrd or initramfs] move initramfs init before DSDT init
@ 2005-02-27 19:45 Thomas Renninger
0 siblings, 0 replies; only message in thread
From: Thomas Renninger @ 2005-02-27 19:45 UTC (permalink / raw)
To: ML ACPI-devel, Hannes Reinecke, Markus Gaugusch,
eric-z+rTbpWsRgbk7+2FdBfRIA
[-- Attachment #1: Type: text/plain, Size: 183 bytes --]
Hi,
This patch from Hannes Reinecke (hare-l3A5Bk7waGM@public.gmane.org) moves initialisation of
initramfs by some lines before the DSDT is parsed.
Thomas
-> linux-2.6.11-rc5
[-- Attachment #2: initramfs-before-acpi.patch --]
[-- Type: text/x-patch, Size: 1157 bytes --]
Subject: Call populate_rootfs() prior to acpi_early_init()
From: Hannes Reinecke <hare-l3A5Bk7waGM@public.gmane.org>
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();
/*
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-02-27 19:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-27 19:45 [PATCH] [1/2 DSDT via initrd or initramfs] move initramfs init before DSDT init Thomas Renninger
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.