aboutsummaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
Diffstat (limited to 'init')
-rw-r--r--init/main.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/init/main.c b/init/main.c
index 7a740870ffe3..95316a1b4a76 100644
--- a/init/main.c
+++ b/init/main.c
@@ -68,6 +68,7 @@
68#include <linux/shmem_fs.h> 68#include <linux/shmem_fs.h>
69#include <linux/slab.h> 69#include <linux/slab.h>
70#include <linux/perf_event.h> 70#include <linux/perf_event.h>
71#include <linux/file.h>
71 72
72#include <asm/io.h> 73#include <asm/io.h>
73#include <asm/bugs.h> 74#include <asm/bugs.h>
@@ -460,6 +461,10 @@ static void __init mm_init(void)
460 percpu_init_late(); 461 percpu_init_late();
461 pgtable_cache_init(); 462 pgtable_cache_init();
462 vmalloc_init(); 463 vmalloc_init();
464#ifdef CONFIG_X86
465 if (efi_enabled)
466 efi_enter_virtual_mode();
467#endif
463} 468}
464 469
465asmlinkage void __init start_kernel(void) 470asmlinkage void __init start_kernel(void)
@@ -601,10 +606,6 @@ asmlinkage void __init start_kernel(void)
601 calibrate_delay(); 606 calibrate_delay();
602 pidmap_init(); 607 pidmap_init();
603 anon_vma_init(); 608 anon_vma_init();
604#ifdef CONFIG_X86
605 if (efi_enabled)
606 efi_enter_virtual_mode();
607#endif
608 thread_info_cache_init(); 609 thread_info_cache_init();
609 cred_init(); 610 cred_init();
610 fork_init(totalram_pages); 611 fork_init(totalram_pages);
@@ -805,8 +806,8 @@ static noinline int init_post(void)
805 system_state = SYSTEM_RUNNING; 806 system_state = SYSTEM_RUNNING;
806 numa_default_policy(); 807 numa_default_policy();
807 808
808
809 current->signal->flags |= SIGNAL_UNKILLABLE; 809 current->signal->flags |= SIGNAL_UNKILLABLE;
810 flush_delayed_fput();
810 811
811 if (ramdisk_execute_command) { 812 if (ramdisk_execute_command) {
812 run_init_process(ramdisk_execute_command); 813 run_init_process(ramdisk_execute_command);