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

Anup Patel <[email protected]>
Newsgroups org.infradead.lists.linux-riscv,org.kernel.vger.linux-kernel
Message-ID <CAAhSdy2TxxiK_yPx5Sjhy3SMf5PsKry2-W+oYZbqqWZHUr8SMw@mail.gmail.com>
On Sun, Aug 16, 2026 at 12:31 PM Guo Ren <[email protected]> wrote:
>
> From: "GUO Ren (XuanTie)" <[email protected]>
>
> 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) <[email protected]>

LGTM.

Reviewed-by: Anup Patel <[email protected]>

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
>

_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.