diff options
Diffstat (limited to 'arch/xtensa')
-rw-r--r-- | arch/xtensa/mm/init.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/arch/xtensa/mm/init.c b/arch/xtensa/mm/init.c index ee261005b363..34163cfaaffc 100644 --- a/arch/xtensa/mm/init.c +++ b/arch/xtensa/mm/init.c | |||
@@ -280,33 +280,6 @@ void free_initmem(void) | |||
280 | (&__init_end - &__init_begin) >> 10); | 280 | (&__init_end - &__init_begin) >> 10); |
281 | } | 281 | } |
282 | 282 | ||
283 | void show_mem(void) | ||
284 | { | ||
285 | int i, free = 0, total = 0, reserved = 0; | ||
286 | int shared = 0, cached = 0; | ||
287 | |||
288 | printk("Mem-info:\n"); | ||
289 | show_free_areas(); | ||
290 | printk("Free swap: %6ldkB\n", nr_swap_pages<<(PAGE_SHIFT-10)); | ||
291 | i = max_mapnr; | ||
292 | while (i-- > 0) { | ||
293 | total++; | ||
294 | if (PageReserved(mem_map+i)) | ||
295 | reserved++; | ||
296 | else if (PageSwapCache(mem_map+i)) | ||
297 | cached++; | ||
298 | else if (!page_count(mem_map + i)) | ||
299 | free++; | ||
300 | else | ||
301 | shared += page_count(mem_map + i) - 1; | ||
302 | } | ||
303 | printk("%d pages of RAM\n", total); | ||
304 | printk("%d reserved pages\n", reserved); | ||
305 | printk("%d pages shared\n", shared); | ||
306 | printk("%d pages swap cached\n",cached); | ||
307 | printk("%d free pages\n", free); | ||
308 | } | ||
309 | |||
310 | struct kmem_cache *pgtable_cache __read_mostly; | 283 | struct kmem_cache *pgtable_cache __read_mostly; |
311 | 284 | ||
312 | static void pgd_ctor(void* addr) | 285 | static void pgd_ctor(void* addr) |