Skip to content

Commit

Permalink
parisc/irq: Use irq_desc_kstat_cpu() in show_interrupts()
Browse files Browse the repository at this point in the history
The irq descriptor is already there, no need to look it up again.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-parisc@vger.kernel.org
Link: https://lore.kernel.org/r/20201210194043.659522455@linutronix.de
  • Loading branch information
Thomas Gleixner committed Dec 15, 2020
1 parent 5089bc5 commit 7435248
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/parisc/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ int show_interrupts(struct seq_file *p, void *v)
seq_printf(p, "%3d: ", i);

for_each_online_cpu(j)
seq_printf(p, "%10u ", kstat_irqs_cpu(i, j));
seq_printf(p, "%10u ", irq_desc_kstat_cpu(desc, j));

seq_printf(p, " %14s", irq_desc_get_chip(desc)->name);
#ifndef PARISC_IRQ_CR16_COUNTS
Expand Down

0 comments on commit 7435248

Please sign in to comment.