[PATCH v2 2/6] riscv: sbi: Use IPI_MAX for SBI IPI muxing
Guo Ren
guoren at kernel.org
Thu Sep 10 20:27:10 PDT 2026
From: "tip-bot2 for GUO Ren (XuanTie)" <tip-bot2 at linutronix.de>
The following commit has been merged into the irq/drivers branch of tip:
Commit-ID: 2a0d49514f297baee259b19fb5553b538aa67d10
Gitweb: https://git.kernel.org/tip/2a0d49514f297baee259b19fb5553b538aa67d10
Author: GUO Ren (XuanTie) <guoren at kernel.org>
AuthorDate: Sun, 16 Aug 2026 07:00:46
Committer: Thomas Gleixner <tglx at kernel.org>
CommitterDate: Fri, 04 Sep 2026 15:34:34 +02:00
riscv: sbi: Use IPI_MAX for SBI IPI muxing
Now that IPI_MAX is visible from <asm/smp.h>, replace the hard-coded
BITS_PER_BYTE with the proper symbolic constant in the SBI IPI
extension driver.
No functional change; IPI_MAX is still 8.
Signed-off-by: GUO Ren (XuanTie) <guoren at kernel.org>
Signed-off-by: Thomas Gleixner <tglx at kernel.org>
Reviewed-by: Anup Patel <anup at brainfault.org>
Link: https://patch.msgid.link/20260816070049.2097442-3-guoren@kernel.org
---
arch/riscv/kernel/sbi-ipi.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/riscv/kernel/sbi-ipi.c b/arch/riscv/kernel/sbi-ipi.c
index 0cc5559c08d8..eeec178a9b95 100644
--- a/arch/riscv/kernel/sbi-ipi.c
+++ b/arch/riscv/kernel/sbi-ipi.c
@@ -57,7 +57,7 @@ void __init sbi_ipi_init(void)
return;
}
- virq = ipi_mux_create(BITS_PER_BYTE, sbi_send_ipi);
+ virq = ipi_mux_create(IPI_MAX, sbi_send_ipi);
if (virq <= 0) {
pr_err("unable to create muxed IPIs\n");
irq_dispose_mapping(sbi_ipi_virq);
@@ -75,7 +75,7 @@ void __init sbi_ipi_init(void)
"irqchip/sbi-ipi:starting",
sbi_ipi_starting_cpu, NULL);
- riscv_ipi_set_virq_range(virq, BITS_PER_BYTE);
+ riscv_ipi_set_virq_range(virq, IPI_MAX);
pr_info("providing IPIs using SBI IPI extension\n");
/*
--
2.43.0
More information about the Linux-mediatek
mailing list