[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20241108161914.9790-1-00107082@163.com>
Date: Sat, 9 Nov 2024 00:19:14 +0800
From: David Wang <00107082@....com>
To: guoren@...nel.org
Cc: linux-kernel@...r.kernel.org,
tglx@...utronix.de,
David Wang <00107082@....com>
Subject: [PATCH 08/13] csky/irq: use seq_put_decimal_ull_width() for decimal values
Performance improvement for reading /proc/interrupts on arch csky
Signed-off-by: David Wang <00107082@....com>
---
arch/csky/kernel/smp.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/csky/kernel/smp.c b/arch/csky/kernel/smp.c
index 92dbbf3e0205..65f399afc3f0 100644
--- a/arch/csky/kernel/smp.c
+++ b/arch/csky/kernel/smp.c
@@ -112,8 +112,8 @@ int arch_show_interrupts(struct seq_file *p, int prec)
seq_printf(p, "%*s%u:%s", prec - 1, "IPI", i,
prec >= 4 ? " " : "");
for_each_online_cpu(cpu)
- seq_printf(p, "%10lu ",
- per_cpu_ptr(&ipi_data, cpu)->stats[i]);
+ seq_put_decimal_ull_width(p, " ",
+ per_cpu_ptr(&ipi_data, cpu)->stats[i], 10);
seq_printf(p, " %s\n", ipi_names[i]);
}
--
2.39.2
Powered by blists - more mailing lists