diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:34:09 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:34:09 -0500 |
commit | 86f03989d99cfa2e1216cdd7aa996852236909cf (patch) | |
tree | 6fae63f51c4adf08f94975b48e656b31c6bced62 /arch/x86/mm/init_32.c | |
parent | aba8391f7323294e88e3a665513434aba4042a7d (diff) |
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_32.c')
-rw-r--r-- | arch/x86/mm/init_32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/mm/init_32.c b/arch/x86/mm/init_32.c index 8d7f723cfc28..8ed5c189d7aa 100644 --- a/arch/x86/mm/init_32.c +++ b/arch/x86/mm/init_32.c | |||
@@ -781,8 +781,6 @@ void mark_rodata_ro(void) | |||
781 | 781 | ||
782 | void free_init_pages(char *what, unsigned long begin, unsigned long end) | 782 | void free_init_pages(char *what, unsigned long begin, unsigned long end) |
783 | { | 783 | { |
784 | unsigned long addr; | ||
785 | |||
786 | #ifdef CONFIG_DEBUG_PAGEALLOC | 784 | #ifdef CONFIG_DEBUG_PAGEALLOC |
787 | /* | 785 | /* |
788 | * If debugging page accesses then do not free this memory but | 786 | * If debugging page accesses then do not free this memory but |
@@ -793,6 +791,8 @@ void free_init_pages(char *what, unsigned long begin, unsigned long end) | |||
793 | begin, PAGE_ALIGN(end)); | 791 | begin, PAGE_ALIGN(end)); |
794 | set_memory_np(begin, (end - begin) >> PAGE_SHIFT); | 792 | set_memory_np(begin, (end - begin) >> PAGE_SHIFT); |
795 | #else | 793 | #else |
794 | unsigned long addr; | ||
795 | |||
796 | /* | 796 | /* |
797 | * We just marked the kernel text read only above, now that | 797 | * We just marked the kernel text read only above, now that |
798 | * we are going to free part of that, we need to make that | 798 | * we are going to free part of that, we need to make that |