avr32: Use generic show_interrupts()
authorThomas Gleixner <tglx@linutronix.de>
Thu, 24 Mar 2011 18:08:11 +0000 (19:08 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 24 Mar 2011 19:35:56 +0000 (20:35 +0100)
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
arch/avr32/Kconfig
arch/avr32/kernel/irq.c

index c0ddc93559201944545816cba2bb93f86e340839..49642b59f73d983df3bd480094b8249a9d10acb7 100644 (file)
@@ -9,6 +9,7 @@ config AVR32
        select HAVE_GENERIC_HARDIRQS
        select GENERIC_IRQ_PROBE
        select HARDIRQS_SW_RESEND
+       select GENERIC_IRQ_SHOW
        select GENERIC_HARDIRQS_NO_DEPRECATED
        help
          AVR32 is a high-performance 32-bit RISC microprocessor core,
index 9604f7758f9a6e84f00779e036c4625073e9fd46..bc3aa18293df1e4abd4dc2b38365b7c9b020400c 100644 (file)
@@ -26,40 +26,3 @@ void __weak nmi_disable(void)
 {
 
 }
-
-#ifdef CONFIG_PROC_FS
-int show_interrupts(struct seq_file *p, void *v)
-{
-       int i = *(loff_t *)v, cpu;
-       struct irqaction *action;
-       unsigned long flags;
-
-       if (i == 0) {
-               seq_puts(p, "           ");
-               for_each_online_cpu(cpu)
-                       seq_printf(p, "CPU%d       ", cpu);
-               seq_putc(p, '\n');
-       }
-
-       if (i < NR_IRQS) {
-               raw_spin_lock_irqsave(&irq_desc[i].lock, flags);
-               action = irq_desc[i].action;
-               if (!action)
-                       goto unlock;
-
-               seq_printf(p, "%3d: ", i);
-               for_each_online_cpu(cpu)
-                       seq_printf(p, "%10u ", kstat_irqs_cpu(i, cpu));
-               seq_printf(p, " %8s", irq_desc[i].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(&irq_desc[i].lock, flags);
-       }
-
-       return 0;
-}
-#endif