diff options
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); |