提交 237a97d6 编写于 作者: H Helge Deller

parisc: Show rescheduling interrupts on SMP machines only

Signed-off-by: NHelge Deller <deller@gmx.de>
上级 81fe5bba
...@@ -175,10 +175,12 @@ int arch_show_interrupts(struct seq_file *p, int prec) ...@@ -175,10 +175,12 @@ int arch_show_interrupts(struct seq_file *p, int prec)
# endif # endif
#endif #endif
#ifdef CONFIG_SMP #ifdef CONFIG_SMP
seq_printf(p, "%*s: ", prec, "RES"); if (num_online_cpus() > 1) {
for_each_online_cpu(j) seq_printf(p, "%*s: ", prec, "RES");
seq_printf(p, "%10u ", irq_stats(j)->irq_resched_count); for_each_online_cpu(j)
seq_puts(p, " Rescheduling interrupts\n"); seq_printf(p, "%10u ", irq_stats(j)->irq_resched_count);
seq_puts(p, " Rescheduling interrupts\n");
}
#endif #endif
seq_printf(p, "%*s: ", prec, "UAH"); seq_printf(p, "%*s: ", prec, "UAH");
for_each_online_cpu(j) for_each_online_cpu(j)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册