summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2019-01-05 20:04:31 +0100
committerHelge Deller <deller@gmx.de>2019-02-21 20:37:11 +0100
commit237a97d61e9c2807071294496762ee25cdde2422 (patch)
treef6b28b97491aa2e25cdee222fd73edeced958236 /arch
parent81fe5bba88a3fbe34ee6c5d18e327c6aaacd588c (diff)
downloadlinux-237a97d61e9c2807071294496762ee25cdde2422.tar.bz2
parisc: Show rescheduling interrupts on SMP machines only
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/parisc/kernel/irq.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/arch/parisc/kernel/irq.c b/arch/parisc/kernel/irq.c
index 0ca254085a66..a1369bb54cdb 100644
--- a/arch/parisc/kernel/irq.c
+++ b/arch/parisc/kernel/irq.c
@@ -175,10 +175,12 @@ 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");
+ 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");
+ }
#endif
seq_printf(p, "%*s: ", prec, "UAH");
for_each_online_cpu(j)