Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 36149
b: refs/heads/master
c: c724191
h: refs/heads/master
i:
  36147: f3e0af3
v: v3
  • Loading branch information
Jes Sorensen authored and Linus Torvalds committed Sep 27, 2006
1 parent 47c4e33 commit 0862d63
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 20 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: de3083ec3e6bfb1ab60bc8a410f37702529f953c
refs/heads/master: c72419138fa34e1bc1f1c6fa54ee77df55a05ed0
36 changes: 17 additions & 19 deletions trunk/mm/page_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1305,34 +1305,30 @@ void si_meminfo_node(struct sysinfo *val, int nid)
*/
void show_free_areas(void)
{
int cpu, temperature;
int cpu;
unsigned long active;
unsigned long inactive;
unsigned long free;
struct zone *zone;

for_each_zone(zone) {
show_node(zone);
printk("%s per-cpu:", zone->name);

if (!populated_zone(zone)) {
printk(" empty\n");
if (!populated_zone(zone))
continue;
} else
printk("\n");

show_node(zone);
printk("%s per-cpu:\n", zone->name);

for_each_online_cpu(cpu) {
struct per_cpu_pageset *pageset;

pageset = zone_pcp(zone, cpu);

for (temperature = 0; temperature < 2; temperature++)
printk("cpu %d %s: high %d, batch %d used:%d\n",
cpu,
temperature ? "cold" : "hot",
pageset->pcp[temperature].high,
pageset->pcp[temperature].batch,
pageset->pcp[temperature].count);
printk("CPU %4d: Hot: hi:%5d, btch:%4d usd:%4d "
"Cold: hi:%5d, btch:%4d usd:%4d\n",
cpu, pageset->pcp[0].high,
pageset->pcp[0].batch, pageset->pcp[0].count,
pageset->pcp[1].high, pageset->pcp[1].batch,
pageset->pcp[1].count);
}
}

Expand All @@ -1354,6 +1350,9 @@ void show_free_areas(void)
for_each_zone(zone) {
int i;

if (!populated_zone(zone))
continue;

show_node(zone);
printk("%s"
" free:%lukB"
Expand Down Expand Up @@ -1386,12 +1385,11 @@ void show_free_areas(void)
for_each_zone(zone) {
unsigned long nr[MAX_ORDER], flags, order, total = 0;

if (!populated_zone(zone))
continue;

show_node(zone);
printk("%s: ", zone->name);
if (!populated_zone(zone)) {
printk("empty\n");
continue;
}

spin_lock_irqsave(&zone->lock, flags);
for (order = 0; order < MAX_ORDER; order++) {
Expand Down

0 comments on commit 0862d63

Please sign in to comment.