From: Thomas Gleixner <tglx@kernel.org>
To: LKML <linux-kernel@vger.kernel.org>
Cc: x86@kernel.org
Subject: [PATCH] x86: Define __ARCH_IRQ_EXIT_IRQS_DISABLED
Date: Fri, 04 Sep 2026 17:55:44 +0200 [thread overview]
Message-ID: <87pkyt6mf3.ffs@fw13> (raw)
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 */
reply other threads:[~2026-09-04 15:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pkyt6mf3.ffs@fw13 \
--to=tglx@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®