diff options
author | Julien Thierry <julien.thierry@arm.com> | 2019-01-31 14:54:01 +0000 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2019-02-05 14:37:05 +0000 |
commit | 6e4933a006616343f66c4702dc4fc56bb25e7b02 (patch) | |
tree | d5637427d41431971b2037ccbff2c5bf9cdca3f0 /include/linux/irqdesc.h | |
parent | 2dcf1fbcad352baaa5f47b17e57c5743c8eedbad (diff) | |
download | linux-6e4933a006616343f66c4702dc4fc56bb25e7b02.tar.gz linux-6e4933a006616343f66c4702dc4fc56bb25e7b02.tar.bz2 linux-6e4933a006616343f66c4702dc4fc56bb25e7b02.zip |
irqdesc: Add domain handler for NMIs
NMI handling code should be executed between calls to nmi_enter and
nmi_exit.
Add a separate domain handler to properly setup NMI context when handling
an interrupt requested as NMI.
Signed-off-by: Julien Thierry <julien.thierry@arm.com>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'include/linux/irqdesc.h')
-rw-r--r-- | include/linux/irqdesc.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/irqdesc.h b/include/linux/irqdesc.h index dd1e40ddac7d..ba05b0d6401a 100644 --- a/include/linux/irqdesc.h +++ b/include/linux/irqdesc.h @@ -171,6 +171,11 @@ static inline int handle_domain_irq(struct irq_domain *domain, { return __handle_domain_irq(domain, hwirq, true, regs); } + +#ifdef CONFIG_IRQ_DOMAIN +int handle_domain_nmi(struct irq_domain *domain, unsigned int hwirq, + struct pt_regs *regs); +#endif #endif /* Test to see if a driver has successfully requested an irq */ |