]> 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>
Tue, 6 Dec 2011 03:59:28 +0000 (14:59 +1100)
commit21a99a182ccdd86359d11a110afef7bd67fa5dd0
tree3b2ad0c63f9d7d38bb410bc4852d093acd758977
parent877fb780de7096851cdeb1f052e7a13c8c56bd4c
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