frv: Use generic show_interrupts()

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

+4 -41
+1
arch/frv/Kconfig
··· 6 6 select HAVE_IRQ_WORK 7 7 select HAVE_PERF_EVENTS 8 8 select HAVE_GENERIC_HARDIRQS 9 + select GENERIC_IRQ_SHOW 9 10 select GENERIC_HARDIRQS_NO_DEPRECATED 10 11 11 12 config ZONE_DMA
+3 -41
arch/frv/kernel/irq.c
··· 47 47 48 48 atomic_t irq_err_count; 49 49 50 - /* 51 - * Generic, controller-independent functions: 52 - */ 53 - int show_interrupts(struct seq_file *p, void *v) 50 + int arch_show_interrupts(struct seq_file *p, int prec) 54 51 { 55 - int i = *(loff_t *) v, cpu; 56 - struct irqaction * action; 57 - unsigned long flags; 58 - 59 - if (i == 0) { 60 - char cpuname[12]; 61 - 62 - seq_printf(p, " "); 63 - for_each_present_cpu(cpu) { 64 - sprintf(cpuname, "CPU%d", cpu); 65 - seq_printf(p, " %10s", cpuname); 66 - } 67 - seq_putc(p, '\n'); 68 - } 69 - 70 - if (i < NR_IRQS) { 71 - raw_spin_lock_irqsave(&irq_desc[i].lock, flags); 72 - action = irq_desc[i].action; 73 - if (action) { 74 - seq_printf(p, "%3d: ", i); 75 - for_each_present_cpu(cpu) 76 - seq_printf(p, "%10u ", kstat_irqs_cpu(i, cpu)); 77 - seq_printf(p, " %10s", irq_desc[i].chip->name ? : "-"); 78 - seq_printf(p, " %s", action->name); 79 - for (action = action->next; 80 - action; 81 - action = action->next) 82 - seq_printf(p, ", %s", action->name); 83 - 84 - seq_putc(p, '\n'); 85 - } 86 - 87 - raw_spin_unlock_irqrestore(&irq_desc[i].lock, flags); 88 - } else if (i == NR_IRQS) { 89 - seq_printf(p, "Err: %10u\n", atomic_read(&irq_err_count)); 90 - } 91 - 52 + seq_printf(p, "%*s: ", prec, "ERR"); 53 + seq_printf(p, "%10u\n", atomic_read(&irq_err_count)); 92 54 return 0; 93 55 } 94 56