aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorJaswinder Singh Rajput <jaswinderrajput@gmail.com>2009-03-22 16:38:00 -0400
committerJaswinder Singh Rajput <jaswinderrajput@gmail.com>2009-03-22 16:38:00 -0400
commitce2d8bfd44c01fc9b22d64617b7e520e99095f33 (patch)
treec4d0423a875702698bb3ef14b11393d4d8fb7a34 /arch
parentf2362e6f1b9c5c168e5b4159afb4853ba467965e (diff)
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>
Diffstat (limited to 'arch')
-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)
133 return 0; 133 return 0;
134 134
135 spin_lock_irqsave(&desc->lock, flags); 135 spin_lock_irqsave(&desc->lock, flags);
136#ifndef CONFIG_SMP
137 any_count = kstat_irqs(i);
138#else
139 for_each_online_cpu(j) 136 for_each_online_cpu(j)
140 any_count |= kstat_irqs_cpu(i, j); 137 any_count |= kstat_irqs_cpu(i, j);
141#endif
142 action = desc->action; 138 action = desc->action;
143 if (!action && !any_count) 139 if (!action && !any_count)
144 goto out; 140 goto out;
145 141
146 seq_printf(p, "%*d: ", prec, i); 142 seq_printf(p, "%*d: ", prec, i);
147#ifndef CONFIG_SMP
148 seq_printf(p, "%10u ", kstat_irqs(i));
149#else
150 for_each_online_cpu(j) 143 for_each_online_cpu(j)
151 seq_printf(p, "%10u ", kstat_irqs_cpu(i, j)); 144 seq_printf(p, "%10u ", kstat_irqs_cpu(i, j));
152#endif
153 seq_printf(p, " %8s", desc->chip->name); 145 seq_printf(p, " %8s", desc->chip->name);
154 seq_printf(p, "-%-8s", desc->name); 146 seq_printf(p, "-%-8s", desc->name);
155 147