]> www.infradead.org Git - users/willy/pagecache.git/commit
LoongArch/irq: Use seq_put_decimal_ull_width() for decimal values
authorDavid Wang <00107082@163.com>
Mon, 2 Dec 2024 08:42:08 +0000 (16:42 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Mon, 2 Dec 2024 08:42:08 +0000 (16:42 +0800)
commitad2a05a6d287aef7e069c06e329f1355756415c2
treecd62576500f6ea54215be329cf7137a43ec86875
parent55dc2f8f263448f1e6c7ef135d08e640d5a4826e
LoongArch/irq: Use seq_put_decimal_ull_width() for decimal values

Performance improvement for reading /proc/interrupts on LoongArch.

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 (and its friends).

Signed-off-by: David Wang <00107082@163.com>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/kernel/smp.c