Skip to content

Commit

Permalink
[PATCH] Don't print per-cpu vm stats for offline cpus.
Browse files Browse the repository at this point in the history
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@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Dave Jones authored and Linus Torvalds committed Nov 10, 2005
1 parent 393b072 commit 6b482c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/page_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6b482c6

Please sign in to comment.