mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 08:14:15 +08:00
[IA64] Clean up /proc/interrupts output
Clean up /proc/interrupts output on the system that has 10 or more CPUs. Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com> Signed-off-by: Tony Luck <tony.luck@intel.com>
This commit is contained in:
parent
1f3b6045f7
commit
ddd6fc7923
@ -61,9 +61,11 @@ int show_interrupts(struct seq_file *p, void *v)
|
||||
unsigned long flags;
|
||||
|
||||
if (i == 0) {
|
||||
seq_printf(p, " ");
|
||||
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');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user