parisc: Hide SMP irq accounting on UP systems
Helge Deller
maintainerPATCH 1/1 parisc: Hide SMP irq accounting on UP systems
Hide Rescheduling (RES) and Function call (CAL) interrupts when running a UP machine.
Signed-off-by Helge Deller <[email protected]>
arch/parisc/kernel/irq.c +10 -8
@@ -175,14 +175,16 @@ int arch_show_interrupts(struct seq_file *p, int prec)# endif #endif #ifdef CONFIG_SMP -seq_printf (p,"%*s: " , prec,"RES" ); -for_each_online_cpu (j) -seq_printf (p,"%10u " ,irq_stats (j)->irq_resched_count); -seq_puts (p," Rescheduling interrupts\n" ); -seq_printf (p,"%*s: " , prec,"CAL" ); -for_each_online_cpu (j) -seq_printf (p,"%10u " ,irq_stats (j)->irq_call_count); -seq_puts (p," Function call interrupts\n" ); +if (num_online_cpus () >1 ) { +seq_printf (p,"%*s: " , prec,"RES" ); +for_each_online_cpu (j) +seq_printf (p,"%10u " ,irq_stats (j)->irq_resched_count); +seq_puts (p," Rescheduling interrupts\n" ); +seq_printf (p,"%*s: " , prec,"CAL" ); +for_each_online_cpu (j) +seq_printf (p,"%10u " ,irq_stats (j)->irq_call_count); +seq_puts (p," Function call interrupts\n" ); + }#endif seq_printf (p,"%*s: " , prec,"UAH" );for_each_online_cpu (j)