summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaswinder Singh Rajput <jaswinderrajput@gmail.com>2009-03-22 21:38:00 +0100
committerJaswinder Singh Rajput <jaswinderrajput@gmail.com>2009-03-22 21:38:00 +0100
commitce2d8bfd44c01fc9b22d64617b7e520e99095f33 (patch)
treec4d0423a875702698bb3ef14b11393d4d8fb7a34
parentx86: cpu/cpu.h cleanup (diff)
downloadlinux-ce2d8bfd44c01fc9b22d64617b7e520e99095f33.tar.xz
linux-ce2d8bfd44c01fc9b22d64617b7e520e99095f33.zip
x86: irq.c use same path for show_interrupts
Impact: cleanup SMP and !SMP will use same path for show_interrupts Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
-rw-r--r--arch/x86/kernel/irq.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/arch/x86/kernel/irq.c b/arch/x86/kernel/irq.c
index b8ac3b6cf776..5e7c3e6f8f27 100644
--- a/arch/x86/kernel/irq.c
+++ b/arch/x86/kernel/irq.c
@@ -133,23 +133,15 @@ int show_interrupts(struct seq_file *p, void *v)
return 0;
spin_lock_irqsave(&desc->lock, flags);
-#ifndef CONFIG_SMP
- any_count = kstat_irqs(i);
-#else
for_each_online_cpu(j)
any_count |= kstat_irqs_cpu(i, j);
-#endif
action = desc->action;
if (!action && !any_count)
goto out;
seq_printf(p, "%*d: ", prec, i);
-#ifndef CONFIG_SMP
- seq_printf(p, "%10u ", kstat_irqs(i));
-#else
for_each_online_cpu(j)
seq_printf(p, "%10u ", kstat_irqs_cpu(i, j));
-#endif
seq_printf(p, " %8s", desc->chip->name);
seq_printf(p, "-%-8s", desc->name);