Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ddd6fc79 authored by Kenji Kaneshige's avatar Kenji Kaneshige Committed by Tony Luck
Browse files

[IA64] Clean up /proc/interrupts output



Clean up /proc/interrupts output on the system that has 10 or more
CPUs.

Signed-off-by: default avatarKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
parent 1f3b6045
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -61,9 +61,11 @@ int show_interrupts(struct seq_file *p, void *v)
	unsigned long flags;

	if (i == 0) {
		char cpuname[16];
		seq_printf(p, "     ");
		for_each_online_cpu(j) {
			seq_printf(p, "CPU%d       ",j);
			snprintf(cpuname, 10, "CPU%d", j);
			seq_printf(p, "%10s ", cpuname);
		}
		seq_putc(p, '\n');
	}