[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAAhV-H41aOaekpbfMTas0K1afCyg+XEKayMvS2L8xma87uB6DQ@mail.gmail.com>
Date: Mon, 2 Dec 2024 11:13:12 +0800
From: Huacai Chen <chenhuacai@...nel.org>
To: David Wang <00107082@....com>
Cc: kernel@...0n.name, linux-kernel@...r.kernel.org, loongarch@...ts.linux.dev
Subject: Re: [PATCH 09/13] loongarch/irq: use seq_put_decimal_ull_width() for
decimal values
Applied, thanks.
Huacai
On Sat, Nov 9, 2024 at 12:20 AM David Wang <00107082@....com> wrote:
>
> Performance improvement for reading /proc/interrupts on arch loongarch
>
> Signed-off-by: David Wang <00107082@....com>
> ---
> 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
>
Powered by blists - more mailing lists