diff options
author | Stanislaw Gruszka <sgruszka@redhat.com> | 2011-11-29 11:05:11 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-12-06 03:24:07 -0500 |
commit | 54c29c635ae91f5d75ced7bffeaa77ba37ca02bb (patch) | |
tree | cddf131b5e70809ec5c282f619de0635e45c1cfa /init | |
parent | 855c743a27bb58a9a521bdc485ef5acfdb69badc (diff) |
mm, x86: Remove debug_pagealloc_enabled
When (no)bootmem finish operation, it pass pages to buddy
allocator. Since debug_pagealloc_enabled is not set, we will do
not protect pages, what is not what we want with
CONFIG_DEBUG_PAGEALLOC=y.
To fix 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 test CPA.
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Acked-by: Mel Gorman <mgorman@suse.de>
Cc: linux-mm@kvack.org
Link: http://lkml.kernel.org/r/1322582711-14571-1-git-send-email-sgruszka@redhat.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'init')
-rw-r--r-- | init/main.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/init/main.c b/init/main.c index 217ed23e9487..99c4ba30ba7e 100644 --- a/init/main.c +++ b/init/main.c | |||
@@ -282,10 +282,6 @@ static int __init unknown_bootoption(char *param, char *val) | |||
282 | return 0; | 282 | return 0; |
283 | } | 283 | } |
284 | 284 | ||
285 | #ifdef CONFIG_DEBUG_PAGEALLOC | ||
286 | int __read_mostly debug_pagealloc_enabled = 0; | ||
287 | #endif | ||
288 | |||
289 | static int __init init_setup(char *str) | 285 | static int __init init_setup(char *str) |
290 | { | 286 | { |
291 | unsigned int i; | 287 | unsigned int i; |
@@ -597,7 +593,6 @@ asmlinkage void __init start_kernel(void) | |||
597 | } | 593 | } |
598 | #endif | 594 | #endif |
599 | page_cgroup_init(); | 595 | page_cgroup_init(); |
600 | enable_debug_pagealloc(); | ||
601 | debug_objects_mem_init(); | 596 | debug_objects_mem_init(); |
602 | kmemleak_init(); | 597 | kmemleak_init(); |
603 | setup_per_cpu_pageset(); | 598 | setup_per_cpu_pageset(); |