diff options
author | Jinjie Ruan <ruanjinjie@huawei.com> | 2024-04-23 02:40:37 +0000 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2024-04-24 20:42:57 +0200 |
commit | 6678ae1918ff554f7438ff3f1a3be22d6d01f2fb (patch) | |
tree | d6444bcb6ce504810eab8332120a1a100cdd7817 /kernel/irq/resend.c | |
parent | 88d724e2301a69c1ab805cd74fc27aa36ae529e0 (diff) | |
download | lwn-6678ae1918ff554f7438ff3f1a3be22d6d01f2fb.tar.gz lwn-6678ae1918ff554f7438ff3f1a3be22d6d01f2fb.zip |
genirq: Reuse irq_is_nmi()
Move irq_is_nmi() to the internal header file and reuse it all over the
place.
Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20240423024037.3331215-1-ruanjinjie@huawei.com
Diffstat (limited to 'kernel/irq/resend.c')
-rw-r--r-- | kernel/irq/resend.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/irq/resend.c b/kernel/irq/resend.c index 5f2c66860ac6..b07a2d732ffb 100644 --- a/kernel/irq/resend.c +++ b/kernel/irq/resend.c @@ -190,7 +190,7 @@ int irq_inject_interrupt(unsigned int irq) * - not NMI type * - activated */ - if ((desc->istate & IRQS_NMI) || !irqd_is_activated(&desc->irq_data)) + if (irq_is_nmi(desc) || !irqd_is_activated(&desc->irq_data)) err = -EINVAL; else err = check_irq_resend(desc, true); |