diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-03-24 18:26:42 +0100 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2011-03-29 14:48:15 +0200 |
commit | 37daf3223e61685854798f755e4af9f073aaa26c (patch) | |
tree | 1a5918bc9445b21de8a6636bdbfecb83a74e6df4 /arch/unicore32/kernel/irq.c | |
parent | e1f5ce819c60a1020b43532333b0db291f2ce5c1 (diff) | |
download | kernel_goldelico_gta04-37daf3223e61685854798f755e4af9f073aaa26c.zip kernel_goldelico_gta04-37daf3223e61685854798f755e4af9f073aaa26c.tar.gz kernel_goldelico_gta04-37daf3223e61685854798f755e4af9f073aaa26c.tar.bz2 |
unicore32: Use generic show_interrupts()
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/unicore32/kernel/irq.c')
-rw-r--r-- | arch/unicore32/kernel/irq.c | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/arch/unicore32/kernel/irq.c b/arch/unicore32/kernel/irq.c index a6ee47f..2aa30a3 100644 --- a/arch/unicore32/kernel/irq.c +++ b/arch/unicore32/kernel/irq.c @@ -355,48 +355,6 @@ void __init init_IRQ(void) #endif } -int show_interrupts(struct seq_file *p, void *v) -{ - int i = *(loff_t *) v, cpu; - struct irq_desc *desc; - struct irqaction *action; - unsigned long flags; - - if (i == 0) { - char cpuname[12]; - - seq_printf(p, " "); - for_each_present_cpu(cpu) { - sprintf(cpuname, "CPU%d", cpu); - seq_printf(p, " %10s", cpuname); - } - seq_putc(p, '\n'); - } - - if (i < nr_irqs) { - desc = irq_to_desc(i); - raw_spin_lock_irqsave(&desc->lock, flags); - action = desc->action; - if (!action) - goto unlock; - - seq_printf(p, "%3d: ", i); - for_each_present_cpu(cpu) - seq_printf(p, "%10u ", kstat_irqs_cpu(i, cpu)); - seq_printf(p, " %10s", desc->irq_data.chip->name ? : "-"); - seq_printf(p, " %s", action->name); - for (action = action->next; action; action = action->next) - seq_printf(p, ", %s", action->name); - - seq_putc(p, '\n'); -unlock: - raw_spin_unlock_irqrestore(&desc->lock, flags); - } else if (i == nr_irqs) { - seq_printf(p, "Error in interrupt!\n"); - } - return 0; -} - /* * do_IRQ handles all hardware IRQ's. Decoded IRQs should not * come via this function. Instead, they should provide their |