diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-02-07 06:01:59 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-03-18 04:01:08 -0400 |
commit | 9f51a874ced2106947e391d85abdf1f22c94f018 (patch) | |
tree | 435a6f41670f12e23d52f29b0c28e83b301a1ed2 /arch/blackfin/kernel | |
parent | bc2f6bd8027a88da69102a8aed65dcbd1e895119 (diff) |
Blackfin: use accessor functions in show_interrupts()
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/kernel')
-rw-r--r-- | arch/blackfin/kernel/irqchip.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/arch/blackfin/kernel/irqchip.c b/arch/blackfin/kernel/irqchip.c index 64cff54a8a58..8f079392aff0 100644 --- a/arch/blackfin/kernel/irqchip.c +++ b/arch/blackfin/kernel/irqchip.c | |||
@@ -39,21 +39,23 @@ int show_interrupts(struct seq_file *p, void *v) | |||
39 | unsigned long flags; | 39 | unsigned long flags; |
40 | 40 | ||
41 | if (i < NR_IRQS) { | 41 | if (i < NR_IRQS) { |
42 | raw_spin_lock_irqsave(&irq_desc[i].lock, flags); | 42 | struct irq_desc *desc = irq_to_desc(i); |
43 | action = irq_desc[i].action; | 43 | |
44 | raw_spin_lock_irqsave(&desc->lock, flags); | ||
45 | action = desc->action; | ||
44 | if (!action) | 46 | if (!action) |
45 | goto skip; | 47 | goto skip; |
46 | seq_printf(p, "%3d: ", i); | 48 | seq_printf(p, "%3d: ", i); |
47 | for_each_online_cpu(j) | 49 | for_each_online_cpu(j) |
48 | seq_printf(p, "%10u ", kstat_irqs_cpu(i, j)); | 50 | seq_printf(p, "%10u ", kstat_irqs_cpu(i, j)); |
49 | seq_printf(p, " %8s", irq_desc[i].chip->name); | 51 | seq_printf(p, " %8s", get_irq_desc_chip(desc)->name); |
50 | seq_printf(p, " %s", action->name); | 52 | seq_printf(p, " %s", action->name); |
51 | for (action = action->next; action; action = action->next) | 53 | for (action = action->next; action; action = action->next) |
52 | seq_printf(p, " %s", action->name); | 54 | seq_printf(p, " %s", action->name); |
53 | 55 | ||
54 | seq_putc(p, '\n'); | 56 | seq_putc(p, '\n'); |
55 | skip: | 57 | skip: |
56 | raw_spin_unlock_irqrestore(&irq_desc[i].lock, flags); | 58 | raw_spin_unlock_irqrestore(&desc->lock, flags); |
57 | } else if (i == NR_IRQS) { | 59 | } else if (i == NR_IRQS) { |
58 | seq_printf(p, "NMI: "); | 60 | seq_printf(p, "NMI: "); |
59 | for_each_online_cpu(j) | 61 | for_each_online_cpu(j) |