From: Dave Jones Date: Thu, 10 Nov 2005 20:45:56 +0000 (-0500) Subject: [PATCH] Don't print per-cpu vm stats for offline cpus. X-Git-Tag: v2.6.15-rc1~46 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=6b482c6779daaa893b277fc9b70767a7c2e7c5eb;p=linux-2.6-omap-h63xx.git [PATCH] Don't print per-cpu vm stats for offline cpus. 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 Signed-off-by: Linus Torvalds --- diff --git a/mm/page_alloc.c b/mm/page_alloc.c index ff81b5c6551..987225bdd66 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -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);