Don't print per-cpu vm stats for offline cpus.

From: Dave Jones
Date: Thu Nov 10 2005 - 15:45:58 EST


I just hit a page allocation error on a kernel configured to support
64 CPUs. It spewed 60 completely useless unnecessary lines of info.

Signed-off-by: Dave Jones <davej@xxxxxxxxxx>

--- linux-2.6.14/mm/page_alloc.c~ 2005-11-10 15:42:52.000000000 -0500
+++ linux-2.6.14/mm/page_alloc.c 2005-11-10 15:43:16.000000000 -0500
@@ -1330,7 +1330,7 @@ void show_free_areas(void)
} else
printk("\n");

- for_each_cpu(cpu) {
+ for_each_online_cpu(cpu) {
struct per_cpu_pageset *pageset;

pageset = zone_pcp(zone, cpu);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/