summaryrefslogtreecommitdiff
path: root/arch/parisc
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2020-12-10 22:25:42 +0300
committerThomas Gleixner <tglx@linutronix.de>2020-12-15 18:19:30 +0300
commitbb0e5192f59875031a0ad060bef2ea0f6c657474 (patch)
tree43b1a014f019f762075591ae8785aedfe51e0d77 /arch/parisc
parent9e42ad10cedf0632fc39860381375806092212bd (diff)
downloadlinux-bb0e5192f59875031a0ad060bef2ea0f6c657474.tar.xz
parisc/irq: Simplify irq count output for /proc/interrupts
The SMP variant works perfectly fine on UP as well. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: linux-parisc@vger.kernel.org Link: https://lore.kernel.org/r/20201210194043.172893840@linutronix.de
Diffstat (limited to 'arch/parisc')
-rw-r--r--arch/parisc/kernel/irq.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/parisc/kernel/irq.c b/arch/parisc/kernel/irq.c
index e76c86619949..15c6207cf3d4 100644
--- a/arch/parisc/kernel/irq.c
+++ b/arch/parisc/kernel/irq.c
@@ -216,12 +216,9 @@ int show_interrupts(struct seq_file *p, void *v)
if (!action)
goto skip;
seq_printf(p, "%3d: ", i);
-#ifdef CONFIG_SMP
+
for_each_online_cpu(j)
seq_printf(p, "%10u ", kstat_irqs_cpu(i, j));
-#else
- seq_printf(p, "%10u ", kstat_irqs(i));
-#endif
seq_printf(p, " %14s", irq_desc_get_chip(desc)->name);
#ifndef PARISC_IRQ_CR16_COUNTS