Skip to contentSkip to conversation

x86: irq_pipeline: Fix condition for !IRQ_PIPELINE case

PATCH New Jan Kiszka 1 participant 1 message Nov 8, 2021 x86

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 x86: irq_pipeline: Fix condition for !IRQ_PIPELINE case

From: Jan Kiszka <[email protected]>

This code is already under CONFIG_SMP: The comment got it right, not yet the implementation. Only affects the pipeline-off case.

---
 arch/x86/kernel/apic/vector.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/apic/vector.c +1 -1
index 2df8681904f6..829409a1e6dd 100644
@@ -814,7 +814,7 @@ static struct irq_desc *__setup_vector_irq(int vector)
 	int isairq = vector - ISA_IRQ_VECTOR(0);
 
 	/* Copy the cleanup vector if irqs are pipelined. */
-	if (IS_ENABLED(CONFIG_SMP) &&
+	if (IS_ENABLED(CONFIG_IRQ_PIPELINE) &&
 		vector == IRQ_MOVE_CLEANUP_VECTOR)
 		return irq_to_desc(IRQ_MOVE_CLEANUP_VECTOR); /* 1:1 mapping */
 	/* Check whether the irq is in the legacy space */
Signature · 1 line
2.31.1