[PATCH 3/5] clocksource: clint: Use IPI_MAX for IPI muxing

Anup Patel anup at brainfault.org
Mon Aug 17 07:36:05 PDT 2026


On Sun, Aug 16, 2026 at 12:31 PM Guo Ren <guoren at kernel.org> wrote:
>
> From: "GUO Ren (XuanTie)" <guoren at kernel.org>
>
> Replace the hard-coded BITS_PER_BYTE with IPI_MAX now that the
> constant is exported from riscv asm/smp.h.
>
> Signed-off-by: GUO Ren (XuanTie) <guoren at kernel.org>

LGTM.

Reviewed-by: Anup Patel <anup at brainfault.org>

Regards,
Anup

> ---
>  drivers/clocksource/timer-clint.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/clocksource/timer-clint.c b/drivers/clocksource/timer-clint.c
> index 0bdd9d7ec545..e56eee7e3781 100644
> --- a/drivers/clocksource/timer-clint.c
> +++ b/drivers/clocksource/timer-clint.c
> @@ -243,7 +243,7 @@ static int __init clint_timer_init_dt(struct device_node *np)
>         }
>
>  #ifdef CONFIG_SMP
> -       rc = ipi_mux_create(BITS_PER_BYTE, clint_send_ipi);
> +       rc = ipi_mux_create(IPI_MAX, clint_send_ipi);
>         if (rc <= 0) {
>                 pr_err("unable to create muxed IPIs\n");
>                 rc = (rc < 0) ? rc : -ENODEV;
> @@ -251,7 +251,7 @@ static int __init clint_timer_init_dt(struct device_node *np)
>         }
>
>         irq_set_chained_handler(clint_ipi_irq, clint_ipi_interrupt);
> -       riscv_ipi_set_virq_range(rc, BITS_PER_BYTE);
> +       riscv_ipi_set_virq_range(rc, IPI_MAX);
>         clint_clear_ipi();
>  #endif
>
> --
> 2.43.0
>



More information about the linux-riscv mailing list