Commit a03c2a48 authored by Thomas Gleixner's avatar Thomas Gleixner

x86: DEBUG_PAGEALLOC: enable after mem_init()

DEBUG_PAGEALLOC must not be enabled before mem_init(). Before this
point there is nothing to allocate.
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 166124fd
...@@ -558,7 +558,6 @@ asmlinkage void __init start_kernel(void) ...@@ -558,7 +558,6 @@ asmlinkage void __init start_kernel(void)
preempt_disable(); preempt_disable();
build_all_zonelists(); build_all_zonelists();
page_alloc_init(); page_alloc_init();
enable_debug_pagealloc();
printk(KERN_NOTICE "Kernel command line: %s\n", boot_command_line); printk(KERN_NOTICE "Kernel command line: %s\n", boot_command_line);
parse_early_param(); parse_early_param();
parse_args("Booting kernel", static_command_line, __start___param, parse_args("Booting kernel", static_command_line, __start___param,
...@@ -614,6 +613,7 @@ asmlinkage void __init start_kernel(void) ...@@ -614,6 +613,7 @@ asmlinkage void __init start_kernel(void)
vfs_caches_init_early(); vfs_caches_init_early();
cpuset_init_early(); cpuset_init_early();
mem_init(); mem_init();
enable_debug_pagealloc();
cpu_hotplug_init(); cpu_hotplug_init();
kmem_cache_init(); kmem_cache_init();
setup_per_cpu_pageset(); setup_per_cpu_pageset();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment