powerpc/irq: use seq_put_decimal_ull_width() for decimal values
authorDavid Wang <00107082@163.com>
Fri, 8 Nov 2024 16:23:27 +0000 (00:23 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 10 Nov 2024 11:33:52 +0000 (22:33 +1100)
commit5b881c1f83792f5db421124171b06f1b8f1fe075
treeb2978d2748e2dbd622fa0b8800816f0b8dd29318
parent44e5d21e6d3fd2a1fed7f0327cf72e99397e2eaf
powerpc/irq: use seq_put_decimal_ull_width() for decimal values

On a system with n CPUs and m interrupts, there will be n*m decimal
values yielded via seq_printf(.."%10u "..) which is less efficient
than seq_put_decimal_ull_width(), stress reading /proc/interrupts
indicates ~30% performance improvement with this patch.

Signed-off-by: David Wang <00107082@163.com>
[mpe: Flesh out change log based on original submission]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/all/20241103080552.4787-1-00107082@163.com
Link: https://patch.msgid.link/20241108162327.9887-1-00107082@163.com
arch/powerpc/kernel/irq.c