aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-01-30 07:32:36 -0500
committerIngo Molnar <mingo@elte.hu>2008-01-30 07:32:36 -0500
commitf2633105cd92b793dd6a6f623b4140287d46160a (patch)
treea227e5de38dd9af6e769a5f3e95559b6a40f085e /arch
parent48ddb154cf55fb1e292af49c270b950ef2c6ef32 (diff)
x86: debug: double-check the empty zero page
temporary debugging - remove before this hits v2.6.25. Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/mm/init_64.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c
index 6c3f6eb1f790..05f12c527b02 100644
--- a/arch/x86/mm/init_64.c
+++ b/arch/x86/mm/init_64.c
@@ -497,6 +497,14 @@ void __init mem_init(void)
497 497
498 /* clear_bss() already clear the empty_zero_page */ 498 /* clear_bss() already clear the empty_zero_page */
499 499
500 /* temporary debugging - double check it's true: */
501 {
502 int i;
503
504 for (i = 0; i < 1024; i++)
505 WARN_ON_ONCE(empty_zero_page[i]);
506 }
507
500 reservedpages = 0; 508 reservedpages = 0;
501 509
502 /* this will put all low memory onto the freelists */ 510 /* this will put all low memory onto the freelists */