diff options
author | Josh Triplett <josh@joshtriplett.org> | 2012-09-28 17:55:44 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2012-09-29 12:21:01 -0700 |
commit | 785107923a83d8456bbd8564e288a24d84109a46 (patch) | |
tree | cda886bdf9d5f33a524b740e7807d17e079cb6b7 /init/main.c | |
parent | 984ff8a4d2251fbd09b1e8515133bdfe9ef4bcd6 (diff) | |
download | op-kernel-dev-785107923a83d8456bbd8564e288a24d84109a46.zip op-kernel-dev-785107923a83d8456bbd8564e288a24d84109a46.tar.gz |
efi: Defer freeing boot services memory until after ACPI init
Some new ACPI 5.0 tables reference resources stored in boot services
memory, so keep that memory around until we have ACPI and can extract
data from it.
Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Link: http://lkml.kernel.org/r/baaa6d44bdc4eb0c58e5d1b4ccd2c729f854ac55.1348876882.git.josh@joshtriplett.org
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'init/main.c')
-rw-r--r-- | init/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/init/main.c b/init/main.c index b286730..d61ec54 100644 --- a/init/main.c +++ b/init/main.c @@ -631,6 +631,9 @@ asmlinkage void __init start_kernel(void) acpi_early_init(); /* before LAPIC and SMP init */ sfi_init_late(); + if (efi_enabled) + efi_free_boot_services(); + ftrace_init(); /* Do the rest non-__init'ed, we're now alive */ |