diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2008-07-26 18:04:59 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-07-26 18:04:59 -0400 |
commit | d9ecdb282c91952796b7542c4f57fd6de6948d7b (patch) | |
tree | fd4de7923968afa7d2981fb037e2255fc2cfa1e1 /arch/um/kernel/mem.c | |
parent | 4ef584ba84125b67c17b5aded38e7783cd8cdef0 (diff) | |
parent | 1d1f8b377c48e5aeddaea52eba74cc0539f088cd (diff) |
Merge branch 'for_rmk_13' of git://git.mnementh.co.uk/linux-2.6-im
Diffstat (limited to 'arch/um/kernel/mem.c')
-rw-r--r-- | arch/um/kernel/mem.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/arch/um/kernel/mem.c b/arch/um/kernel/mem.c index e2274ef3155d..61d7e6138ff5 100644 --- a/arch/um/kernel/mem.c +++ b/arch/um/kernel/mem.c | |||
@@ -264,37 +264,6 @@ void free_initrd_mem(unsigned long start, unsigned long end) | |||
264 | } | 264 | } |
265 | #endif | 265 | #endif |
266 | 266 | ||
267 | void show_mem(void) | ||
268 | { | ||
269 | int pfn, total = 0, reserved = 0; | ||
270 | int shared = 0, cached = 0; | ||
271 | int high_mem = 0; | ||
272 | struct page *page; | ||
273 | |||
274 | printk(KERN_INFO "Mem-info:\n"); | ||
275 | show_free_areas(); | ||
276 | printk(KERN_INFO "Free swap: %6ldkB\n", | ||
277 | nr_swap_pages<<(PAGE_SHIFT-10)); | ||
278 | pfn = max_mapnr; | ||
279 | while (pfn-- > 0) { | ||
280 | page = pfn_to_page(pfn); | ||
281 | total++; | ||
282 | if (PageHighMem(page)) | ||
283 | high_mem++; | ||
284 | if (PageReserved(page)) | ||
285 | reserved++; | ||
286 | else if (PageSwapCache(page)) | ||
287 | cached++; | ||
288 | else if (page_count(page)) | ||
289 | shared += page_count(page) - 1; | ||
290 | } | ||
291 | printk(KERN_INFO "%d pages of RAM\n", total); | ||
292 | printk(KERN_INFO "%d pages of HIGHMEM\n", high_mem); | ||
293 | printk(KERN_INFO "%d reserved pages\n", reserved); | ||
294 | printk(KERN_INFO "%d pages shared\n", shared); | ||
295 | printk(KERN_INFO "%d pages swap cached\n", cached); | ||
296 | } | ||
297 | |||
298 | /* Allocate and free page tables. */ | 267 | /* Allocate and free page tables. */ |
299 | 268 | ||
300 | pgd_t *pgd_alloc(struct mm_struct *mm) | 269 | pgd_t *pgd_alloc(struct mm_struct *mm) |