diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:33:58 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:33:58 -0500 |
commit | 12d6f21eacc21d84a809829543f2fe45c7e37319 (patch) | |
tree | 6985f2370ad238fb2a568547a5049751d7c95a69 /init/main.c | |
parent | 9a3dc7804e9856668caef41efc54179e61ffccc0 (diff) |
x86: do not PSE on CONFIG_DEBUG_PAGEALLOC=y
get more testing of the c_p_a() code done by not turning off
PSE on DEBUG_PAGEALLOC.
this simplifies the early pagetable setup code, and tests
the largepage-splitup code quite heavily.
In the end, all the largepages will be split up pretty quickly,
so there's no difference to how DEBUG_PAGEALLOC worked before.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'init/main.c')
-rw-r--r-- | init/main.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/init/main.c b/init/main.c index 3316dffe3e57..cb81ed116f62 100644 --- a/init/main.c +++ b/init/main.c | |||
@@ -318,6 +318,10 @@ static int __init unknown_bootoption(char *param, char *val) | |||
318 | return 0; | 318 | return 0; |
319 | } | 319 | } |
320 | 320 | ||
321 | #ifdef CONFIG_DEBUG_PAGEALLOC | ||
322 | int __read_mostly debug_pagealloc_enabled = 0; | ||
323 | #endif | ||
324 | |||
321 | static int __init init_setup(char *str) | 325 | static int __init init_setup(char *str) |
322 | { | 326 | { |
323 | unsigned int i; | 327 | unsigned int i; |
@@ -552,6 +556,7 @@ asmlinkage void __init start_kernel(void) | |||
552 | preempt_disable(); | 556 | preempt_disable(); |
553 | build_all_zonelists(); | 557 | build_all_zonelists(); |
554 | page_alloc_init(); | 558 | page_alloc_init(); |
559 | enable_debug_pagealloc(); | ||
555 | printk(KERN_NOTICE "Kernel command line: %s\n", boot_command_line); | 560 | printk(KERN_NOTICE "Kernel command line: %s\n", boot_command_line); |
556 | parse_early_param(); | 561 | parse_early_param(); |
557 | parse_args("Booting kernel", static_command_line, __start___param, | 562 | parse_args("Booting kernel", static_command_line, __start___param, |