mirror of
https://github.com/torvalds/linux.git
synced 2025-04-09 14:45:27 +00:00
sparc/irq: use seq_put_decimal_ull_width() for decimal values
Performance improvement for reading /proc/interrupts on arch sparc Signed-off-by: David Wang <00107082@163.com> Reviewed-by: Andreas Larsson <andreas@gaisler.com> Tested-by: Andreas Larsson <andreas@gaisler.com> Link: https://lore.kernel.org/r/20241108161123.9637-1-00107082@163.com Signed-off-by: Andreas Larsson <andreas@gaisler.com>
This commit is contained in:
parent
40384c840e
commit
929bd2a177
@ -199,18 +199,18 @@ int arch_show_interrupts(struct seq_file *p, int prec)
|
||||
int j;
|
||||
|
||||
#ifdef CONFIG_SMP
|
||||
seq_printf(p, "RES: ");
|
||||
seq_printf(p, "RES:");
|
||||
for_each_online_cpu(j)
|
||||
seq_printf(p, "%10u ", cpu_data(j).irq_resched_count);
|
||||
seq_put_decimal_ull_width(p, " ", cpu_data(j).irq_resched_count, 10);
|
||||
seq_printf(p, " IPI rescheduling interrupts\n");
|
||||
seq_printf(p, "CAL: ");
|
||||
seq_printf(p, "CAL:");
|
||||
for_each_online_cpu(j)
|
||||
seq_printf(p, "%10u ", cpu_data(j).irq_call_count);
|
||||
seq_put_decimal_ull_width(p, " ", cpu_data(j).irq_call_count, 10);
|
||||
seq_printf(p, " IPI function call interrupts\n");
|
||||
#endif
|
||||
seq_printf(p, "NMI: ");
|
||||
seq_printf(p, "NMI:");
|
||||
for_each_online_cpu(j)
|
||||
seq_printf(p, "%10u ", cpu_data(j).counter);
|
||||
seq_put_decimal_ull_width(p, " ", cpu_data(j).counter, 10);
|
||||
seq_printf(p, " Non-maskable interrupts\n");
|
||||
return 0;
|
||||
}
|
||||
|
@ -304,9 +304,9 @@ int arch_show_interrupts(struct seq_file *p, int prec)
|
||||
{
|
||||
int j;
|
||||
|
||||
seq_printf(p, "NMI: ");
|
||||
seq_printf(p, "NMI:");
|
||||
for_each_online_cpu(j)
|
||||
seq_printf(p, "%10u ", cpu_data(j).__nmi_count);
|
||||
seq_put_decimal_ull_width(p, " ", cpu_data(j).__nmi_count, 10);
|
||||
seq_printf(p, " Non-maskable interrupts\n");
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user