[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20241108162634.9945-1-00107082@163.com>
Date: Sat, 9 Nov 2024 00:26:34 +0800
From: David Wang <00107082@....com>
To: ysato@...rs.sourceforge.jp,
dalias@...c.org,
glaubitz@...sik.fu-berlin.de
Cc: linux-kernel@...r.kernel.org,
linux-sh@...r.kernel.org,
David Wang <00107082@....com>
Subject: [PATCH 13/13] sh/irq: use seq_put_decimal_ull_width() for decimal values
Performance improvement for reading /proc/interrupts on arch sh
Signed-off-by: David Wang <00107082@....com>
---
arch/sh/kernel/irq.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/sh/kernel/irq.c b/arch/sh/kernel/irq.c
index 4e6835de54cf..9022d8af9d68 100644
--- a/arch/sh/kernel/irq.c
+++ b/arch/sh/kernel/irq.c
@@ -43,9 +43,9 @@ int arch_show_interrupts(struct seq_file *p, int prec)
{
int j;
- seq_printf(p, "%*s: ", prec, "NMI");
+ seq_printf(p, "%*s:", prec, "NMI");
for_each_online_cpu(j)
- seq_printf(p, "%10u ", per_cpu(irq_stat.__nmi_count, j));
+ seq_put_decimal_ull_width(p, " ", per_cpu(irq_stat.__nmi_count, j), 10);
seq_printf(p, " Non-maskable interrupts\n");
seq_printf(p, "%*s: %10u\n", prec, "ERR", atomic_read(&irq_err_count));
--
2.39.2
Powered by blists - more mailing lists