diff options
-rw-r--r-- | arch/sh/kernel/irq.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/sh/kernel/irq.c b/arch/sh/kernel/irq.c index d9f3b6e7c7c..995301afa36 100644 --- a/arch/sh/kernel/irq.c +++ b/arch/sh/kernel/irq.c | |||
@@ -56,6 +56,8 @@ int show_interrupts(struct seq_file *p, void *v) | |||
56 | int i = *(loff_t *)v, j, prec; | 56 | int i = *(loff_t *)v, j, prec; |
57 | struct irqaction *action; | 57 | struct irqaction *action; |
58 | struct irq_desc *desc; | 58 | struct irq_desc *desc; |
59 | struct irq_data *data; | ||
60 | struct irq_chip *chip; | ||
59 | 61 | ||
60 | if (i > nr_irqs) | 62 | if (i > nr_irqs) |
61 | return 0; | 63 | return 0; |
@@ -77,6 +79,9 @@ int show_interrupts(struct seq_file *p, void *v) | |||
77 | if (!desc) | 79 | if (!desc) |
78 | return 0; | 80 | return 0; |
79 | 81 | ||
82 | data = irq_get_irq_data(i); | ||
83 | chip = irq_data_get_irq_chip(data); | ||
84 | |||
80 | raw_spin_lock_irqsave(&desc->lock, flags); | 85 | raw_spin_lock_irqsave(&desc->lock, flags); |
81 | for_each_online_cpu(j) | 86 | for_each_online_cpu(j) |
82 | any_count |= kstat_irqs_cpu(i, j); | 87 | any_count |= kstat_irqs_cpu(i, j); |
@@ -87,7 +92,7 @@ int show_interrupts(struct seq_file *p, void *v) | |||
87 | seq_printf(p, "%*d: ", prec, i); | 92 | seq_printf(p, "%*d: ", prec, i); |
88 | for_each_online_cpu(j) | 93 | for_each_online_cpu(j) |
89 | seq_printf(p, "%10u ", kstat_irqs_cpu(i, j)); | 94 | seq_printf(p, "%10u ", kstat_irqs_cpu(i, j)); |
90 | seq_printf(p, " %14s", desc->chip->name); | 95 | seq_printf(p, " %14s", chip->name); |
91 | seq_printf(p, "-%-8s", desc->name); | 96 | seq_printf(p, "-%-8s", desc->name); |
92 | 97 | ||
93 | if (action) { | 98 | if (action) { |