diff options
Diffstat (limited to 'init/main.c')
| -rw-r--r-- | init/main.c | 9 | 
1 files changed, 4 insertions, 5 deletions
diff --git a/init/main.c b/init/main.c index 96f8d5af52d6..91f6ebb30ef0 100644 --- a/init/main.c +++ b/init/main.c @@ -433,7 +433,7 @@ noinline void __ref rest_init(void)  	/*  	 * Enable might_sleep() and smp_processor_id() checks. -	 * They cannot be enabled earlier because with CONFIG_PREEMPT=y +	 * They cannot be enabled earlier because with CONFIG_PREEMPTION=y  	 * kernel_thread() would trigger might_sleep() splats. With  	 * CONFIG_PREEMPT_VOLUNTARY=y the init task might have scheduled  	 * already, but it's stuck on the kthreadd_done completion. @@ -507,7 +507,7 @@ void __init __weak mem_encrypt_init(void) { }  void __init __weak poking_init(void) { } -void __init __weak pgd_cache_init(void) { } +void __init __weak pgtable_cache_init(void) { }  bool initcall_debug;  core_param(initcall_debug, initcall_debug, bool, 0644); @@ -556,6 +556,7 @@ static void __init mm_init(void)  	report_meminit();  	mem_init();  	kmem_cache_init(); +	kmemleak_init();  	pgtable_init();  	debug_objects_mem_init();  	vmalloc_init(); @@ -564,7 +565,6 @@ static void __init mm_init(void)  	init_espfix_bsp();  	/* Should be run after espfix64 is set up. */  	pti_init(); -	pgd_cache_init();  }  void __init __weak arch_call_rest_init(void) @@ -593,8 +593,8 @@ asmlinkage __visible void __init start_kernel(void)  	boot_cpu_init();  	page_address_init();  	pr_notice("%s", linux_banner); +	early_security_init();  	setup_arch(&command_line); -	mm_init_cpumask(&init_mm);  	setup_command_line(command_line);  	setup_nr_cpu_ids();  	setup_per_cpu_areas(); @@ -740,7 +740,6 @@ asmlinkage __visible void __init start_kernel(void)  		initrd_start = 0;  	}  #endif -	kmemleak_init();  	setup_per_cpu_pageset();  	numa_policy_init();  	acpi_early_init();  |