Skip to content

Commit

Permalink
x86: debug: double-check the empty zero page
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ingo Molnar committed Jan 30, 2008
1 parent 48ddb15 commit f263310
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions arch/x86/mm/init_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,14 @@ void __init mem_init(void)

/* clear_bss() already clear the empty_zero_page */

/* temporary debugging - double check it's true: */
{
int i;

for (i = 0; i < 1024; i++)
WARN_ON_ONCE(empty_zero_page[i]);
}

reservedpages = 0;

/* this will put all low memory onto the freelists */
Expand Down

0 comments on commit f263310

Please sign in to comment.