mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-13 23:24:05 +08:00
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
This commit is contained in:
parent
9e42ad10ce
commit
bb0e5192f5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user