diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-01-30 13:34:09 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 13:34:09 +0100 |
commit | 86f03989d99cfa2e1216cdd7aa996852236909cf (patch) | |
tree | 6fae63f51c4adf08f94975b48e656b31c6bced62 /arch/x86/mm/init_64.c | |
parent | aba8391f7323294e88e3a665513434aba4042a7d (diff) | |
download | kernel_samsung_smdk4412-86f03989d99cfa2e1216cdd7aa996852236909cf.zip kernel_samsung_smdk4412-86f03989d99cfa2e1216cdd7aa996852236909cf.tar.gz kernel_samsung_smdk4412-86f03989d99cfa2e1216cdd7aa996852236909cf.tar.bz2 |
x86: cpa: fix the self-test
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/mm/init_64.c')
-rw-r--r-- | arch/x86/mm/init_64.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c index e0c1e98..8a7b725 100644 --- a/arch/x86/mm/init_64.c +++ b/arch/x86/mm/init_64.c @@ -569,22 +569,6 @@ void free_init_pages(char *what, unsigned long begin, unsigned long end) free_page(addr); totalram_pages++; } -#ifdef CONFIG_DEBUG_RODATA - /* - * This will make the __init pages not present and - * not executable, so that any attempt to use a - * __init function from now on will fault immediately - * rather than supriously later when memory gets reused. - * - * We only do this for DEBUG_RODATA to not break up the - * 2Mb kernel mapping just for this debug feature. - */ - if (begin >= __START_KERNEL_map) { - set_memory_rw(begin, (end - begin)/PAGE_SIZE); - set_memory_np(begin, (end - begin)/PAGE_SIZE); - set_memory_nx(begin, (end - begin)/PAGE_SIZE); - } -#endif #endif } |