Skip to contentSkip to conversation

x86: Define __ARCH_IRQ_EXIT_IRQS_DISABLED

PATCH New Thomas Gleixner 1 participant 1 message Sep 4 x86

lore
Share & tools
lore

Thomas Gleixner

author maintainer
#0 lore raw

PATCH 1/1 x86: Define __ARCH_IRQ_EXIT_IRQS_DISABLED

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.

---
 arch/x86/include/asm/hardirq.h |    2 ++
 1 file changed, 2 insertions(+)
arch/x86/include/asm/hardirq.h +2 -0
@@ -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 */