mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] x86: Define __ARCH_IRQ_EXIT_IRQS_DISABLED
@ 2026-09-04 15:55 Thomas Gleixner
  0 siblings, 0 replies; only message in thread
From: Thomas Gleixner @ 2026-09-04 15:55 UTC (permalink / raw)
  To: LKML; +Cc: x86

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 */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-04 15:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-04 15:55 [PATCH] x86: Define __ARCH_IRQ_EXIT_IRQS_DISABLED Thomas Gleixner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®