Message ID | 1322146570-24097-1-git-send-email-daniel.lezcano@linaro.org |
---|---|
State | Rejected |
Headers | show |
diff --git a/arch/arm/kernel/smp.c b/arch/arm/kernel/smp.c index ef5640b..050f826 100644 --- a/arch/arm/kernel/smp.c +++ b/arch/arm/kernel/smp.c @@ -444,7 +444,7 @@ void show_ipi_list(struct seq_file *p, int prec) for (i = 0; i < NR_IPI; i++) { seq_printf(p, "%*s%u: ", prec - 1, "IPI", i); - for_each_present_cpu(cpu) + for_each_online_cpu(cpu) seq_printf(p, "%10u ", __get_irq_stat(cpu, ipi_irqs[i]));
The loop should look at the online cpus instead of the present cpus in order to hide the offline cpus in procfs like it is done on the other architectures. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> --- arch/arm/kernel/smp.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)