[PATCH] x86: Define __ARCH_IRQ_EXIT_IRQS_DISABLED

Thomas Gleixner posted 1 patch 3 weeks ago
arch/x86/include/asm/hardirq.h |    2 ++
1 file changed, 2 insertions(+)
[PATCH] x86: Define __ARCH_IRQ_EXIT_IRQS_DISABLED
Posted by Thomas Gleixner 3 weeks ago
X86 exits from interrupts with interrupts disabled, but it does not have
__ARCH_IRQ_EXIT_IRQS_DISABLED defined. So it ends up with a pointless
local_irq_disable() in __irq_exit_rcu() instead of just validating that
interrupts are disabled on a lockdep build.

Add the missing define.

Signed-off-by: Thomas Gleixner <tglx@kernel.org
---
 arch/x86/include/asm/hardirq.h |    2 ++
 1 file changed, 2 insertions(+)

--- a/arch/x86/include/asm/hardirq.h
+++ b/arch/x86/include/asm/hardirq.h
@@ -113,4 +113,6 @@ static __always_inline bool kvm_get_cpu_
 static __always_inline void kvm_set_cpu_l1tf_flush_l1d(void) { }
 #endif /* IS_ENABLED(CONFIG_KVM_INTEL) */
 
+#define __ARCH_IRQ_EXIT_IRQS_DISABLED 1
+
 #endif /* _ASM_X86_HARDIRQ_H */