linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM : fix /proc/interrupts per online cpu
@ 2011-11-24 16:05 Daniel Lezcano
  2011-11-24 20:21 ` Russell King - ARM Linux
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Lezcano @ 2011-11-24 16:05 UTC (permalink / raw)
  To: linux-arm-kernel

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(-)

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]));
 
-- 
1.7.4.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-11-24 22:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-24 16:05 [PATCH] ARM : fix /proc/interrupts per online cpu Daniel Lezcano
2011-11-24 20:21 ` Russell King - ARM Linux
2011-11-24 22:37   ` Daniel Lezcano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).