Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 106235
b: refs/heads/master
c: 79b0cbd
h: refs/heads/master
i:
  106233: 77fa82d
  106231: 94513fd
v: v3
  • Loading branch information
Johannes Weiner authored and Linus Torvalds committed Jul 26, 2008
1 parent 2aa295d commit 87d1f2e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 32 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8dad322f5449010c14990dd6934878f576b2ee60
refs/heads/master: 79b0cbd113a9de1eaa3322528ccaeb97bd9189cc
31 changes: 0 additions & 31 deletions trunk/arch/um/kernel/mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,37 +264,6 @@ void free_initrd_mem(unsigned long start, unsigned long end)
}
#endif

void show_mem(void)
{
int pfn, total = 0, reserved = 0;
int shared = 0, cached = 0;
int high_mem = 0;
struct page *page;

printk(KERN_INFO "Mem-info:\n");
show_free_areas();
printk(KERN_INFO "Free swap: %6ldkB\n",
nr_swap_pages<<(PAGE_SHIFT-10));
pfn = max_mapnr;
while (pfn-- > 0) {
page = pfn_to_page(pfn);
total++;
if (PageHighMem(page))
high_mem++;
if (PageReserved(page))
reserved++;
else if (PageSwapCache(page))
cached++;
else if (page_count(page))
shared += page_count(page) - 1;
}
printk(KERN_INFO "%d pages of RAM\n", total);
printk(KERN_INFO "%d pages of HIGHMEM\n", high_mem);
printk(KERN_INFO "%d reserved pages\n", reserved);
printk(KERN_INFO "%d pages shared\n", shared);
printk(KERN_INFO "%d pages swap cached\n", cached);
}

/* Allocate and free page tables. */

pgd_t *pgd_alloc(struct mm_struct *mm)
Expand Down

0 comments on commit 87d1f2e

Please sign in to comment.