diff options
| author | Ingo Molnar <mingo@elte.hu> | 2008-07-28 15:14:43 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2008-07-28 15:14:43 -0400 |
| commit | 414f746d232d41ed6ae8632c4495ae795373c44b (patch) | |
| tree | 167f9bc8f139c6e82e6732b38c7a938b8a9d31cd /arch/m32r/mm/init.c | |
| parent | 5a7a201c51c324876d00a54e7208af6af12d1ca4 (diff) | |
| parent | c9272c4f9fbe2087beb3392f526dc5b19efaa56b (diff) | |
Merge branch 'linus' into cpus4096
Diffstat (limited to 'arch/m32r/mm/init.c')
| -rw-r--r-- | arch/m32r/mm/init.c | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/arch/m32r/mm/init.c b/arch/m32r/mm/init.c index 2554eb59cfef..24d429f9358a 100644 --- a/arch/m32r/mm/init.c +++ b/arch/m32r/mm/init.c | |||
| @@ -36,42 +36,6 @@ pgd_t swapper_pg_dir[1024]; | |||
| 36 | 36 | ||
| 37 | DEFINE_PER_CPU(struct mmu_gather, mmu_gathers); | 37 | DEFINE_PER_CPU(struct mmu_gather, mmu_gathers); |
| 38 | 38 | ||
| 39 | void show_mem(void) | ||
| 40 | { | ||
| 41 | int total = 0, reserved = 0; | ||
| 42 | int shared = 0, cached = 0; | ||
| 43 | int highmem = 0; | ||
| 44 | struct page *page; | ||
| 45 | pg_data_t *pgdat; | ||
| 46 | unsigned long i; | ||
| 47 | |||
| 48 | printk("Mem-info:\n"); | ||
| 49 | show_free_areas(); | ||
| 50 | printk("Free swap: %6ldkB\n",nr_swap_pages<<(PAGE_SHIFT-10)); | ||
| 51 | for_each_online_pgdat(pgdat) { | ||
| 52 | unsigned long flags; | ||
| 53 | pgdat_resize_lock(pgdat, &flags); | ||
| 54 | for (i = 0; i < pgdat->node_spanned_pages; ++i) { | ||
| 55 | page = pgdat_page_nr(pgdat, i); | ||
| 56 | total++; | ||
| 57 | if (PageHighMem(page)) | ||
| 58 | highmem++; | ||
| 59 | if (PageReserved(page)) | ||
| 60 | reserved++; | ||
| 61 | else if (PageSwapCache(page)) | ||
| 62 | cached++; | ||
| 63 | else if (page_count(page)) | ||
| 64 | shared += page_count(page) - 1; | ||
| 65 | } | ||
| 66 | pgdat_resize_unlock(pgdat, &flags); | ||
| 67 | } | ||
| 68 | printk("%d pages of RAM\n", total); | ||
| 69 | printk("%d pages of HIGHMEM\n",highmem); | ||
| 70 | printk("%d reserved pages\n",reserved); | ||
| 71 | printk("%d pages shared\n",shared); | ||
| 72 | printk("%d pages swap cached\n",cached); | ||
| 73 | } | ||
| 74 | |||
| 75 | /* | 39 | /* |
| 76 | * Cache of MMU context last used. | 40 | * Cache of MMU context last used. |
| 77 | */ | 41 | */ |
