m68knommu: Use generic show_interrupts()
authorGeert Uytterhoeven <geert@linux-m68k.org>
Sat, 30 Apr 2011 21:15:07 +0000 (23:15 +0200)
committerGreg Ungerer <gerg@uclinux.org>
Tue, 24 May 2011 05:17:23 +0000 (15:17 +1000)
Apart from whitespace differences, /proc/interrupts doesn't change by
enabling GENERIC_IRQ_SHOW.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
arch/m68k/Kconfig
arch/m68k/kernel/irq.c

index 75531da02a40a602cd3cabd5a11f041f7786b4a0..d66e34c718d0927a6eba9daa9a023b7e3bcd228a 100644 (file)
@@ -5,6 +5,7 @@ config M68K
        select HAVE_AOUT if MMU
        select GENERIC_ATOMIC64 if MMU
        select HAVE_GENERIC_HARDIRQS if !MMU
+       select GENERIC_IRQ_SHOW if !MMU
 
 config RWSEM_GENERIC_SPINLOCK
        bool
index 15dbc3e9d20c5594cdf96d9655898ef7ad378285..544b8717d49913bff339695db2d25f255d4734a1 100644 (file)
@@ -28,31 +28,3 @@ asmlinkage void do_IRQ(int irq, struct pt_regs *regs)
 
        set_irq_regs(oldregs);
 }
-
-int show_interrupts(struct seq_file *p, void *v)
-{
-       struct irqaction *ap;
-       int irq = *((loff_t *) v);
-
-       if (irq == 0)
-               seq_puts(p, "           CPU0\n");
-
-       if (irq < NR_IRQS) {
-               struct irq_desc *desc = irq_to_desc(irq);
-
-               ap = desc->action;
-               if (ap) {
-                       seq_printf(p, "%3d: ", irq);
-                       seq_printf(p, "%10u ", kstat_irqs(irq));
-                       seq_printf(p, "%14s  ", irq_desc_get_chip(desc)->name);
-
-                       seq_printf(p, "%s", ap->name);
-                       for (ap = ap->next; ap; ap = ap->next)
-                               seq_printf(p, ", %s", ap->name);
-                       seq_putc(p, '\n');
-               }
-       }
-
-       return 0;
-}
-