x86: dovetail: Fix inverted debug check in lock_vector_lock
PATCH v2 1/1 x86: dovetail: Fix inverted debug check in lock_vector_lock
From: Jan Kiszka <[email protected]>
Code and comment were not in line, but the comment actually makes more sense here, given that unlock_vector_lock will unconditionally reenable hard IRQs.
Signed-off-by Jan Kiszka <[email protected]>
---
Changes in v2:
- spelling fixes in commit message
arch/x86/kernel/apic/vector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/apic/vector.c +1 -1
@@ -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.
Signature · 6 lines
2.43.0 -- Siemens AG, Foundational Technologies Linux Expert Center