diff options
author | Ingo Molnar <mingo@elte.hu> | 2011-02-14 05:55:18 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-02-14 05:55:18 -0500 |
commit | d2137d5af4259f50c19addb8246a186c9ffac325 (patch) | |
tree | 2f7e309f9cf8ef2f2698532c226edda38021fe69 /arch/x86/mm/init.c | |
parent | f005fe12b90c5b9fe180a09209a893e09affa8aa (diff) | |
parent | 795abaf1e4e188c4171e3cd3dbb11a9fcacaf505 (diff) |
Merge branch 'linus' into x86/bootmem
Conflicts:
arch/x86/mm/numa_64.c
Merge reason: fix the conflict, update to latest -rc and pick up this
dependent fix from Yinghai:
e6d2e2b2b1e1: memblock: don't adjust size in memblock_find_base()
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/mm/init.c')
-rw-r--r-- | arch/x86/mm/init.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/mm/init.c b/arch/x86/mm/init.c index 35ee75d9061a..b8054e087ead 100644 --- a/arch/x86/mm/init.c +++ b/arch/x86/mm/init.c | |||
@@ -336,8 +336,9 @@ void free_init_pages(char *what, unsigned long begin, unsigned long end) | |||
336 | /* | 336 | /* |
337 | * We just marked the kernel text read only above, now that | 337 | * We just marked the kernel text read only above, now that |
338 | * we are going to free part of that, we need to make that | 338 | * we are going to free part of that, we need to make that |
339 | * writeable first. | 339 | * writeable and non-executable first. |
340 | */ | 340 | */ |
341 | set_memory_nx(begin, (end - begin) >> PAGE_SHIFT); | ||
341 | set_memory_rw(begin, (end - begin) >> PAGE_SHIFT); | 342 | set_memory_rw(begin, (end - begin) >> PAGE_SHIFT); |
342 | 343 | ||
343 | printk(KERN_INFO "Freeing %s: %luk freed\n", what, (end - begin) >> 10); | 344 | printk(KERN_INFO "Freeing %s: %luk freed\n", what, (end - begin) >> 10); |