Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 36342
b: refs/heads/master
c: 816add4
h: refs/heads/master
v: v3
  • Loading branch information
Jes Sorensen authored and Tony Luck committed Sep 26, 2006
1 parent 8b589ba commit 788432a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 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: 709a6c1c07673a9f7879b5f7306dc8d723db93a2
refs/heads/master: 816add4e986499145135c4014a7c8a8857f9f3c3
9 changes: 4 additions & 5 deletions trunk/arch/ia64/mm/discontig.c
Original file line number Diff line number Diff line change
Expand Up @@ -551,12 +551,12 @@ void show_mem(void)
show_free_areas();
printk(KERN_INFO "Free swap: %6ldkB\n",
nr_swap_pages<<(PAGE_SHIFT-10));
printk(KERN_INFO "Node memory in pages:\n");
for_each_online_pgdat(pgdat) {
unsigned long present;
unsigned long flags;
int shared = 0, cached = 0, reserved = 0;

printk(KERN_INFO "Node ID: %d\n", pgdat->node_id);
pgdat_resize_lock(pgdat, &flags);
present = pgdat->node_present_pages;
for(i = 0; i < pgdat->node_spanned_pages; i++) {
Expand All @@ -580,10 +580,9 @@ void show_mem(void)
total_reserved += reserved;
total_cached += cached;
total_shared += shared;
printk(KERN_INFO "\t%ld pages of RAM\n", present);
printk(KERN_INFO "\t%d reserved pages\n", reserved);
printk(KERN_INFO "\t%d pages shared\n", shared);
printk(KERN_INFO "\t%d pages swap cached\n", cached);
printk(KERN_INFO "Node %4d: RAM: %11ld, rsvd: %8d, "
"shrd: %10d, swpd: %10d\n", pgdat->node_id,
present, reserved, shared, cached);
}
printk(KERN_INFO "%ld pages of RAM\n", total_present);
printk(KERN_INFO "%d reserved pages\n", total_reserved);
Expand Down

0 comments on commit 788432a

Please sign in to comment.