aboutsummaryrefslogtreecommitdiffstats
path: root/init/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'init/main.c')
-rw-r--r--init/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/init/main.c b/init/main.c
index ef139bda591e..63534a141b4e 100644
--- a/init/main.c
+++ b/init/main.c
@@ -606,7 +606,7 @@ asmlinkage void __init start_kernel(void)
606 pidmap_init(); 606 pidmap_init();
607 anon_vma_init(); 607 anon_vma_init();
608#ifdef CONFIG_X86 608#ifdef CONFIG_X86
609 if (efi_enabled) 609 if (efi_enabled(EFI_RUNTIME_SERVICES))
610 efi_enter_virtual_mode(); 610 efi_enter_virtual_mode();
611#endif 611#endif
612 thread_info_cache_init(); 612 thread_info_cache_init();
@@ -634,7 +634,7 @@ asmlinkage void __init start_kernel(void)
634 acpi_early_init(); /* before LAPIC and SMP init */ 634 acpi_early_init(); /* before LAPIC and SMP init */
635 sfi_init_late(); 635 sfi_init_late();
636 636
637 if (efi_enabled) { 637 if (efi_enabled(EFI_RUNTIME_SERVICES)) {
638 efi_late_init(); 638 efi_late_init();
639 efi_free_boot_services(); 639 efi_free_boot_services();
640 } 640 }