]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm,x86: remove debug_pagealloc_enabled
authorStanislaw Gruszka <sgruszka@redhat.com>
Fri, 2 Dec 2011 03:12:07 +0000 (14:12 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 5 Dec 2011 04:19:22 +0000 (15:19 +1100)
commitaf4eb24e9f5c799bc0d258a67331f8affc6b83e2
tree830796d0796841220fd047ede7c593c63890e791
parent370ec5c1f860d1fa3a59108f12da769edd9bf890
mm,x86: remove debug_pagealloc_enabled

When (no)bootmem finishes its operation, it passes pages to the buddy
allocator.  Since debug_pagealloc_enabled is not set, we will not protect
these pages, which is not what we want with CONFIG_DEBUG_PAGEALLOC=y.

To fix this, remove debug_pagealloc_enabled.  That variable was introduced
by commit 12d6f21e ("x86: do not PSE on CONFIG_DEBUG_PAGEALLOC=y") to get
more CPA (change page attribude) code testing.  But currently we have
CONFIG_CPA_DEBUG, which tests CPA.

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Acked-by: Mel Gorman <mgorman@suse.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/x86/mm/pageattr.c
include/linux/mm.h
init/main.c
mm/debug-pagealloc.c