2020-12-10 19:47:11

by Thomas Gleixner

[permalink] [raw]
Subject: [patch 12/30] s390/irq: Use irq_desc_kstat_cpu() in show_msi_interrupt()

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

Signed-off-by: Thomas Gleixner <[email protected]>
Cc: Christian Borntraeger <[email protected]>
Cc: Heiko Carstens <[email protected]>
Cc: [email protected]
---
arch/s390/kernel/irq.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--- a/arch/s390/kernel/irq.c
+++ b/arch/s390/kernel/irq.c
@@ -124,7 +124,7 @@ static void show_msi_interrupt(struct se
raw_spin_lock_irqsave(&desc->lock, flags);
seq_printf(p, "%3d: ", irq);
for_each_online_cpu(cpu)
- seq_printf(p, "%10u ", kstat_irqs_cpu(irq, cpu));
+ seq_printf(p, "%10u ", irq_desc_kstat_irq(desc, cpu));

if (desc->irq_data.chip)
seq_printf(p, " %8s", desc->irq_data.chip->name);


2020-12-10 20:38:52

by Heiko Carstens

[permalink] [raw]
Subject: Re: [patch 12/30] s390/irq: Use irq_desc_kstat_cpu() in show_msi_interrupt()

On Thu, Dec 10, 2020 at 08:25:48PM +0100, Thomas Gleixner wrote:
> The irq descriptor is already there, no need to look it up again.
>
> Signed-off-by: Thomas Gleixner <[email protected]>
> Cc: Christian Borntraeger <[email protected]>
> Cc: Heiko Carstens <[email protected]>
> Cc: [email protected]
> ---
> arch/s390/kernel/irq.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)

Acked-by: Heiko Carstens <[email protected]>

Subject: [tip: irq/core] s390/irq: Use irq_desc_kstat_cpu() in show_msi_interrupt()

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

Commit-ID: 7a0a6b22431b36549151df8f30cec4f667a018fc
Gitweb: https://git.kernel.org/tip/7a0a6b22431b36549151df8f30cec4f667a018fc
Author: Thomas Gleixner <[email protected]>
AuthorDate: Thu, 10 Dec 2020 20:25:48 +01:00
Committer: Thomas Gleixner <[email protected]>
CommitterDate: Sat, 12 Dec 2020 12:59:04 +01:00

s390/irq: Use irq_desc_kstat_cpu() in show_msi_interrupt()

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

Signed-off-by: Thomas Gleixner <[email protected]>
Acked-by: Heiko Carstens <[email protected]>
Link: https://lore.kernel.org/r/[email protected]

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

diff --git a/arch/s390/kernel/irq.c b/arch/s390/kernel/irq.c
index 3514420..d9cd898 100644
--- a/arch/s390/kernel/irq.c
+++ b/arch/s390/kernel/irq.c
@@ -124,7 +124,7 @@ static void show_msi_interrupt(struct seq_file *p, int irq)
raw_spin_lock_irqsave(&desc->lock, flags);
seq_printf(p, "%3d: ", irq);
for_each_online_cpu(cpu)
- seq_printf(p, "%10u ", kstat_irqs_cpu(irq, cpu));
+ seq_printf(p, "%10u ", irq_desc_kstat_irq(desc, cpu));

if (desc->irq_data.chip)
seq_printf(p, " %8s", desc->irq_data.chip->name);