From: Jan Kiszka Subject: [dovetail][PATCH] x86: irq_pipeline: Fix condition for !IRQ_PIPELINE case Message-ID: Date: Mon, 8 Nov 2021 09:50:15 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Philippe Gerum Cc: Xenomai From: Jan Kiszka This code is already under CONFIG_SMP: The comment got it right, not yet the implementation. Only affects the pipeline-off case. Signed-off-by: Jan Kiszka --- 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 2df8681904f6..829409a1e6dd 100644 --- a/arch/x86/kernel/apic/vector.c +++ b/arch/x86/kernel/apic/vector.c @@ -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 */ -- 2.31.1