[tip: irq/core] ARM: smp: Use irq_desc_kstat_cpu() in show_ipi_list()

From: tip-bot2 for Thomas Gleixner
Date: Sat Dec 12 2020 - 08:03:50 EST


The following commit has been merged into the irq/core branch of tip:

Commit-ID: fe80f1d579dfd4edf78a66c3bd3befa985b4b02b
Gitweb: https://git.kernel.org/tip/fe80f1d579dfd4edf78a66c3bd3befa985b4b02b
Author: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
AuthorDate: Thu, 10 Dec 2020 20:25:45 +01:00
Committer: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
CommitterDate: Sat, 12 Dec 2020 12:59:03 +01:00

ARM: smp: Use irq_desc_kstat_cpu() in show_ipi_list()

The irq descriptor is already there, no need to look it up again.

Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
Acked-by: Marc Zyngier <maz@xxxxxxxxxx>
Link: https://lore.kernel.org/r/20201210194043.454288890@xxxxxxxxxxxxx

---
arch/arm/kernel/smp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/kernel/smp.c b/arch/arm/kernel/smp.c
index 48099c6..e66c46a 100644
--- a/arch/arm/kernel/smp.c
+++ b/arch/arm/kernel/smp.c
@@ -550,7 +550,7 @@ void show_ipi_list(struct seq_file *p, int prec)
seq_printf(p, "%*s%u: ", prec - 1, "IPI", i);

for_each_online_cpu(cpu)
- seq_printf(p, "%10u ", kstat_irqs_cpu(irq, cpu));
+ seq_printf(p, "%10u ", irq_desc_kstat_cpu(ipi_desc[i], cpu));

seq_printf(p, " %s\n", ipi_types[i]);
}