diff options
Diffstat (limited to 'arch/alpha')
-rw-r--r-- | arch/alpha/mm/init.c | 30 | ||||
-rw-r--r-- | arch/alpha/mm/numa.c | 35 |
2 files changed, 0 insertions, 65 deletions
diff --git a/arch/alpha/mm/init.c b/arch/alpha/mm/init.c index 40c15e7301de..234e42b8ee74 100644 --- a/arch/alpha/mm/init.c +++ b/arch/alpha/mm/init.c | |||
@@ -94,36 +94,6 @@ __bad_page(void) | |||
94 | return pte_mkdirty(mk_pte(virt_to_page(EMPTY_PGE), PAGE_SHARED)); | 94 | return pte_mkdirty(mk_pte(virt_to_page(EMPTY_PGE), PAGE_SHARED)); |
95 | } | 95 | } |
96 | 96 | ||
97 | #ifndef CONFIG_DISCONTIGMEM | ||
98 | void | ||
99 | show_mem(void) | ||
100 | { | ||
101 | long i,free = 0,total = 0,reserved = 0; | ||
102 | long shared = 0, cached = 0; | ||
103 | |||
104 | printk("\nMem-info:\n"); | ||
105 | show_free_areas(); | ||
106 | printk("Free swap: %6ldkB\n", nr_swap_pages<<(PAGE_SHIFT-10)); | ||
107 | i = max_mapnr; | ||
108 | while (i-- > 0) { | ||
109 | total++; | ||
110 | if (PageReserved(mem_map+i)) | ||
111 | reserved++; | ||
112 | else if (PageSwapCache(mem_map+i)) | ||
113 | cached++; | ||
114 | else if (!page_count(mem_map+i)) | ||
115 | free++; | ||
116 | else | ||
117 | shared += page_count(mem_map + i) - 1; | ||
118 | } | ||
119 | printk("%ld pages of RAM\n",total); | ||
120 | printk("%ld free pages\n",free); | ||
121 | printk("%ld reserved pages\n",reserved); | ||
122 | printk("%ld pages shared\n",shared); | ||
123 | printk("%ld pages swap cached\n",cached); | ||
124 | } | ||
125 | #endif | ||
126 | |||
127 | static inline unsigned long | 97 | static inline unsigned long |
128 | load_PCB(struct pcb_struct *pcb) | 98 | load_PCB(struct pcb_struct *pcb) |
129 | { | 99 | { |
diff --git a/arch/alpha/mm/numa.c b/arch/alpha/mm/numa.c index d8c4ceaf00b9..a13de49d1265 100644 --- a/arch/alpha/mm/numa.c +++ b/arch/alpha/mm/numa.c | |||
@@ -359,38 +359,3 @@ void __init mem_init(void) | |||
359 | mem_stress(); | 359 | mem_stress(); |
360 | #endif | 360 | #endif |
361 | } | 361 | } |
362 | |||
363 | void | ||
364 | show_mem(void) | ||
365 | { | ||
366 | long i,free = 0,total = 0,reserved = 0; | ||
367 | long shared = 0, cached = 0; | ||
368 | int nid; | ||
369 | |||
370 | printk("\nMem-info:\n"); | ||
371 | show_free_areas(); | ||
372 | printk("Free swap: %6ldkB\n", nr_swap_pages<<(PAGE_SHIFT-10)); | ||
373 | for_each_online_node(nid) { | ||
374 | unsigned long flags; | ||
375 | pgdat_resize_lock(NODE_DATA(nid), &flags); | ||
376 | i = node_spanned_pages(nid); | ||
377 | while (i-- > 0) { | ||
378 | struct page *page = nid_page_nr(nid, i); | ||
379 | total++; | ||
380 | if (PageReserved(page)) | ||
381 | reserved++; | ||
382 | else if (PageSwapCache(page)) | ||
383 | cached++; | ||
384 | else if (!page_count(page)) | ||
385 | free++; | ||
386 | else | ||
387 | shared += page_count(page) - 1; | ||
388 | } | ||
389 | pgdat_resize_unlock(NODE_DATA(nid), &flags); | ||
390 | } | ||
391 | printk("%ld pages of RAM\n",total); | ||
392 | printk("%ld free pages\n",free); | ||
393 | printk("%ld reserved pages\n",reserved); | ||
394 | printk("%ld pages shared\n",shared); | ||
395 | printk("%ld pages swap cached\n",cached); | ||
396 | } | ||