diff options
Diffstat (limited to 'arch/xtensa/kernel/irq.c')
| -rw-r--r-- | arch/xtensa/kernel/irq.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/arch/xtensa/kernel/irq.c b/arch/xtensa/kernel/irq.c index 4cbf6d91571f..51f9bed455fa 100644 --- a/arch/xtensa/kernel/irq.c +++ b/arch/xtensa/kernel/irq.c | |||
| @@ -83,9 +83,8 @@ int show_interrupts(struct seq_file *p, void *v) | |||
| 83 | 83 | ||
| 84 | if (i == 0) { | 84 | if (i == 0) { |
| 85 | seq_printf(p, " "); | 85 | seq_printf(p, " "); |
| 86 | for (j=0; j<NR_CPUS; j++) | 86 | for_each_online_cpu(j) |
| 87 | if (cpu_online(j)) | 87 | seq_printf(p, "CPU%d ",j); |
| 88 | seq_printf(p, "CPU%d ",j); | ||
| 89 | seq_putc(p, '\n'); | 88 | seq_putc(p, '\n'); |
| 90 | } | 89 | } |
| 91 | 90 | ||
| @@ -98,9 +97,8 @@ int show_interrupts(struct seq_file *p, void *v) | |||
| 98 | #ifndef CONFIG_SMP | 97 | #ifndef CONFIG_SMP |
| 99 | seq_printf(p, "%10u ", kstat_irqs(i)); | 98 | seq_printf(p, "%10u ", kstat_irqs(i)); |
| 100 | #else | 99 | #else |
| 101 | for (j = 0; j < NR_CPUS; j++) | 100 | for_each_online_cpu(j) |
| 102 | if (cpu_online(j)) | 101 | seq_printf(p, "%10u ", kstat_cpu(j).irqs[i]); |
| 103 | seq_printf(p, "%10u ", kstat_cpu(j).irqs[i]); | ||
| 104 | #endif | 102 | #endif |
| 105 | seq_printf(p, " %14s", irq_desc[i].handler->typename); | 103 | seq_printf(p, " %14s", irq_desc[i].handler->typename); |
| 106 | seq_printf(p, " %s", action->name); | 104 | seq_printf(p, " %s", action->name); |
| @@ -113,9 +111,8 @@ skip: | |||
| 113 | spin_unlock_irqrestore(&irq_desc[i].lock, flags); | 111 | spin_unlock_irqrestore(&irq_desc[i].lock, flags); |
| 114 | } else if (i == NR_IRQS) { | 112 | } else if (i == NR_IRQS) { |
| 115 | seq_printf(p, "NMI: "); | 113 | seq_printf(p, "NMI: "); |
| 116 | for (j = 0; j < NR_CPUS; j++) | 114 | for_each_online_cpu(j) |
| 117 | if (cpu_online(j)) | 115 | seq_printf(p, "%10u ", nmi_count(j)); |
| 118 | seq_printf(p, "%10u ", nmi_count(j)); | ||
| 119 | seq_putc(p, '\n'); | 116 | seq_putc(p, '\n'); |
| 120 | seq_printf(p, "ERR: %10u\n", atomic_read(&irq_err_count)); | 117 | seq_printf(p, "ERR: %10u\n", atomic_read(&irq_err_count)); |
| 121 | } | 118 | } |
