Re: [PATCH 09/13] loongarch/irq: use seq_put_decimal_ull_width() for decimal values

From: Huacai Chen
Date: Sun Dec 01 2024 - 22:13:29 EST


Applied, thanks.

Huacai

On Sat, Nov 9, 2024 at 12:20 AM David Wang <00107082@xxxxxxx> wrote:
>
> Performance improvement for reading /proc/interrupts on arch loongarch
>
> Signed-off-by: David Wang <00107082@xxxxxxx>
> ---
> arch/loongarch/kernel/smp.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/loongarch/kernel/smp.c b/arch/loongarch/kernel/smp.c
> index 9afc2d8b3414..86664adfb3cf 100644
> --- a/arch/loongarch/kernel/smp.c
> +++ b/arch/loongarch/kernel/smp.c
> @@ -82,7 +82,7 @@ void show_ipi_list(struct seq_file *p, int prec)
> for (i = 0; i < NR_IPI; i++) {
> seq_printf(p, "%*s%u:%s", prec - 1, "IPI", i, prec >= 4 ? " " : "");
> for_each_online_cpu(cpu)
> - seq_printf(p, "%10u ", per_cpu(irq_stat, cpu).ipi_irqs[i]);
> + seq_put_decimal_ull_width(p, " ", per_cpu(irq_stat, cpu).ipi_irqs[i], 10);
> seq_printf(p, " LoongArch %d %s\n", i + 1, ipi_types[i]);
> }
> }
> --
> 2.39.2
>