All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86: dovetail: Fix inverted debug check in lock_vector_lock
@ 2025-03-24 17:18 Jan Kiszka
  2025-03-24 18:58 ` Florian Bezdeka
  2025-03-24 22:52 ` Florian Bezdeka
  0 siblings, 2 replies; 9+ messages in thread
From: Jan Kiszka @ 2025-03-24 17:18 UTC (permalink / raw)
  To: Philippe Gerum, Florian Bezdeka, Xenomai

From: Jan Kiszka <jan.kiszka@siemens.com>

Code and comment were no in line, but the comment actually make more
sense here, given that unlock_vector_lock will unconditionally reenable
hard IRQs.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 arch/x86/kernel/apic/vector.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kernel/apic/vector.c b/arch/x86/kernel/apic/vector.c
index a08b0dff066ac..af60f138d590b 100644
--- a/arch/x86/kernel/apic/vector.c
+++ b/arch/x86/kernel/apic/vector.c
@@ -142,7 +142,7 @@ void lock_vector_lock(void)
 	 * entry. In addition, we assume that hard irqs are on as well
 	 * (which is the regular case).
 	 */
-	WARN_ON_ONCE(irq_pipeline_debug() && !hard_irqs_disabled());
+	WARN_ON_ONCE(irq_pipeline_debug() && hard_irqs_disabled());
 	hard_cond_local_irq_disable();
 	/* Used to the online set of cpus does not change
 	 * during assign_irq_vector.
-- 
2.43.0

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-03-26 21:57 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-24 17:18 [PATCH] x86: dovetail: Fix inverted debug check in lock_vector_lock Jan Kiszka
2025-03-24 18:58 ` Florian Bezdeka
2025-03-24 22:52 ` Florian Bezdeka
2025-03-25  9:50   ` Philippe Gerum
2025-03-26 12:13     ` Florian Bezdeka
2025-03-26 12:14     ` Florian Bezdeka
2025-03-26 13:56       ` Philippe Gerum
2025-03-26 14:12         ` Philippe Gerum
2025-03-26 21:57           ` Florian Bezdeka

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.