Commit 0b9ce3ae authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] skip offline CPUs in show_free_areas

From: Christoph Hellwig <hch@lst.de>

Don't try to display the per-cpu information for CPUs which aren't there.
parent 6a69bfee
......@@ -971,7 +971,13 @@ void show_free_areas(void)
printk("\n");
for (cpu = 0; cpu < NR_CPUS; ++cpu) {
struct per_cpu_pageset *pageset = zone->pageset + cpu;
struct per_cpu_pageset *pageset;
if (!cpu_possible(cpu))
continue;
pageset = zone->pageset + cpu;
for (temperature = 0; temperature < 2; temperature++)
printk("cpu %d %s: low %d, high %d, batch %d\n",
cpu,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment