diff options
| author | Thomas Gleixner <tglx@linutronix.de> | 2011-03-29 09:05:13 -0400 |
|---|---|---|
| committer | David Howells <dhowells@redhat.com> | 2011-03-29 09:05:13 -0400 |
| commit | 3062aa50a6b2c3103470178fe7506c450d79ebe5 (patch) | |
| tree | 0ebeb6b8a3bbae294892c73b96c2ec6175b1ff39 | |
| parent | 60af3ab1e6b0b7a1bdbb7392134c27e6be9630df (diff) | |
FRV: Use generic show_interrupts()
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: David Howells <dhowells@redhat.com>
| -rw-r--r-- | arch/frv/Kconfig | 1 | ||||
| -rw-r--r-- | arch/frv/kernel/irq.c | 45 |
2 files changed, 4 insertions, 42 deletions
diff --git a/arch/frv/Kconfig b/arch/frv/Kconfig index 3824132dba9e..6db8aea5667f 100644 --- a/arch/frv/Kconfig +++ b/arch/frv/Kconfig | |||
| @@ -6,6 +6,7 @@ config FRV | |||
| 6 | select HAVE_IRQ_WORK | 6 | select HAVE_IRQ_WORK |
| 7 | select HAVE_PERF_EVENTS | 7 | select HAVE_PERF_EVENTS |
| 8 | select HAVE_GENERIC_HARDIRQS | 8 | select HAVE_GENERIC_HARDIRQS |
| 9 | select GENERIC_IRQ_SHOW | ||
| 9 | select GENERIC_HARDIRQS_NO_DEPRECATED | 10 | select GENERIC_HARDIRQS_NO_DEPRECATED |
| 10 | 11 | ||
| 11 | config ZONE_DMA | 12 | config ZONE_DMA |
diff --git a/arch/frv/kernel/irq.c b/arch/frv/kernel/irq.c index a5631e940a00..a5f624a9f559 100644 --- a/arch/frv/kernel/irq.c +++ b/arch/frv/kernel/irq.c | |||
| @@ -47,49 +47,10 @@ extern void __init mb93493_init(void); | |||
| 47 | 47 | ||
| 48 | atomic_t irq_err_count; | 48 | atomic_t irq_err_count; |
| 49 | 49 | ||
| 50 | /* | 50 | int arch_show_interrupts(struct seq_file *p, int prec) |
| 51 | * Generic, controller-independent functions: | ||
| 52 | */ | ||
| 53 | int show_interrupts(struct seq_file *p, void *v) | ||
| 54 | { | 51 | { |
| 55 | int i = *(loff_t *) v, cpu; | 52 | seq_printf(p, "%*s: ", prec, "ERR"); |
| 56 | struct irqaction * action; | 53 | seq_printf(p, "%10u\n", atomic_read(&irq_err_count)); |
| 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", | ||
| 78 | irq_desc[i].irq_data.chip->name ? : "-"); | ||
| 79 | seq_printf(p, " %s", action->name); | ||
| 80 | for (action = action->next; | ||
| 81 | action; | ||
| 82 | action = action->next) | ||
| 83 | seq_printf(p, ", %s", action->name); | ||
| 84 | |||
| 85 | seq_putc(p, '\n'); | ||
| 86 | } | ||
| 87 | |||
| 88 | raw_spin_unlock_irqrestore(&irq_desc[i].lock, flags); | ||
| 89 | } else if (i == NR_IRQS) { | ||
| 90 | seq_printf(p, "Err: %10u\n", atomic_read(&irq_err_count)); | ||
| 91 | } | ||
| 92 | |||
| 93 | return 0; | 54 | return 0; |
| 94 | } | 55 | } |
| 95 | 56 | ||
