diff options
author | Paul Mundt <lethal@linux-sh.org> | 2010-10-27 15:43:01 +0900 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-10-27 15:43:01 +0900 |
commit | faadfb04d92387bd7823d81e09d9b976332f9e44 (patch) | |
tree | ff13b61cc0c14fb81140fcb5ffde1751372acce4 /arch/sh/kernel/irq.c | |
parent | 26599a94dcadbed528a3e32a4f482a9766332f5b (diff) | |
download | linux-faadfb04d92387bd7823d81e09d9b976332f9e44.tar.gz linux-faadfb04d92387bd7823d81e09d9b976332f9e44.tar.bz2 linux-faadfb04d92387bd7823d81e09d9b976332f9e44.zip |
sh: update show_interrupts() for irq_data chip lookup.
Presently the irq chip is found through the irq_desc, but as this is
going away convert over to an irq_data lookup instead.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/irq.c')
-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 d9f3b6e7c7cb..995301afa36d 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) int i = *(loff_t *)v, j, prec; struct irqaction *action; struct irq_desc *desc; + struct irq_data *data; + struct irq_chip *chip; if (i > nr_irqs) return 0; @@ -77,6 +79,9 @@ int show_interrupts(struct seq_file *p, void *v) if (!desc) return 0; + data = irq_get_irq_data(i); + chip = irq_data_get_irq_chip(data); + raw_spin_lock_irqsave(&desc->lock, flags); for_each_online_cpu(j) any_count |= kstat_irqs_cpu(i, j); @@ -87,7 +92,7 @@ int show_interrupts(struct seq_file *p, void *v) seq_printf(p, "%*d: ", prec, i); for_each_online_cpu(j) seq_printf(p, "%10u ", kstat_irqs_cpu(i, j)); - seq_printf(p, " %14s", desc->chip->name); + seq_printf(p, " %14s", chip->name); seq_printf(p, "-%-8s", desc->name); if (action) { |