diff options
author | Tejun Heo <tj@kernel.org> | 2010-04-04 22:37:28 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2010-04-04 22:37:28 -0400 |
commit | 336f5899d287f06d8329e208fc14ce50f7ec9698 (patch) | |
tree | 9b762d450d5eb248a6ff8317badb7e223d93ed58 /arch/microblaze/mm/init.c | |
parent | a4ab2773205e8b94c18625455f85e3b6bb9d7ad6 (diff) | |
parent | db217dece3003df0841bacf9556b5c06aa097dae (diff) |
Merge branch 'master' into export-slabh
Diffstat (limited to 'arch/microblaze/mm/init.c')
-rw-r--r-- | arch/microblaze/mm/init.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/arch/microblaze/mm/init.c b/arch/microblaze/mm/init.c index 77c9e3033e71..f42c2dde8b1c 100644 --- a/arch/microblaze/mm/init.c +++ b/arch/microblaze/mm/init.c | |||
@@ -166,7 +166,6 @@ void free_init_pages(char *what, unsigned long begin, unsigned long end) | |||
166 | for (addr = begin; addr < end; addr += PAGE_SIZE) { | 166 | for (addr = begin; addr < end; addr += PAGE_SIZE) { |
167 | ClearPageReserved(virt_to_page(addr)); | 167 | ClearPageReserved(virt_to_page(addr)); |
168 | init_page_count(virt_to_page(addr)); | 168 | init_page_count(virt_to_page(addr)); |
169 | memset((void *)addr, 0xcc, PAGE_SIZE); | ||
170 | free_page(addr); | 169 | free_page(addr); |
171 | totalram_pages++; | 170 | totalram_pages++; |
172 | } | 171 | } |
@@ -209,14 +208,6 @@ void __init mem_init(void) | |||
209 | } | 208 | } |
210 | 209 | ||
211 | #ifndef CONFIG_MMU | 210 | #ifndef CONFIG_MMU |
212 | /* Check against bounds of physical memory */ | ||
213 | int ___range_ok(unsigned long addr, unsigned long size) | ||
214 | { | ||
215 | return ((addr < memory_start) || | ||
216 | ((addr + size) > memory_end)); | ||
217 | } | ||
218 | EXPORT_SYMBOL(___range_ok); | ||
219 | |||
220 | int page_is_ram(unsigned long pfn) | 211 | int page_is_ram(unsigned long pfn) |
221 | { | 212 | { |
222 | return __range_ok(pfn, 0); | 213 | return __range_ok(pfn, 0); |