diff options
author | Josh Triplett <josh@joshtriplett.org> | 2012-09-28 20:55:44 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2012-09-29 15:21:01 -0400 |
commit | 785107923a83d8456bbd8564e288a24d84109a46 (patch) | |
tree | cda886bdf9d5f33a524b740e7807d17e079cb6b7 /init/main.c | |
parent | 984ff8a4d2251fbd09b1e8515133bdfe9ef4bcd6 (diff) |
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 b28673087ac0..d61ec542205c 100644 --- a/init/main.c +++ b/init/main.c | |||
@@ -631,6 +631,9 @@ asmlinkage void __init start_kernel(void) | |||
631 | acpi_early_init(); /* before LAPIC and SMP init */ | 631 | acpi_early_init(); /* before LAPIC and SMP init */ |
632 | sfi_init_late(); | 632 | sfi_init_late(); |
633 | 633 | ||
634 | if (efi_enabled) | ||
635 | efi_free_boot_services(); | ||
636 | |||
634 | ftrace_init(); | 637 | ftrace_init(); |
635 | 638 | ||
636 | /* Do the rest non-__init'ed, we're now alive */ | 639 | /* Do the rest non-__init'ed, we're now alive */ |