diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-03-25 10:16:56 -0400 |
---|---|---|
committer | Chen Liqin <liqin.chen@sunplusct.com> | 2011-03-28 00:03:35 -0400 |
commit | 324808c2bc190e9424200e73faab1045df9b7d2e (patch) | |
tree | 892e3b4b514ec8fd865c3005220a80dabfe17544 /arch/score | |
parent | 991353510e8ab5e55c5bbd058c7545f29192cddf (diff) |
score: Use generic show_interrupts()
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Chen Liqin <liqin.chen@sunplusct.com>
Diffstat (limited to 'arch/score')
-rw-r--r-- | arch/score/Kconfig | 1 | ||||
-rw-r--r-- | arch/score/kernel/irq.c | 39 |
2 files changed, 1 insertions, 39 deletions
diff --git a/arch/score/Kconfig b/arch/score/Kconfig index b256adbe0c5d..4278bbc032ce 100644 --- a/arch/score/Kconfig +++ b/arch/score/Kconfig | |||
@@ -4,6 +4,7 @@ config SCORE | |||
4 | def_bool y | 4 | def_bool y |
5 | select HAVE_GENERIC_HARDIRQS | 5 | select HAVE_GENERIC_HARDIRQS |
6 | select GENERIC_HARDIRQS_NO_DEPRECATED | 6 | select GENERIC_HARDIRQS_NO_DEPRECATED |
7 | select GENERIC_IRQ_SHOW | ||
7 | 8 | ||
8 | choice | 9 | choice |
9 | prompt "System type" | 10 | prompt "System type" |
diff --git a/arch/score/kernel/irq.c b/arch/score/kernel/irq.c index 601a56688a1b..d4196732c65e 100644 --- a/arch/score/kernel/irq.c +++ b/arch/score/kernel/irq.c | |||
@@ -109,42 +109,3 @@ void __init init_IRQ(void) | |||
109 | : : "r" (EXCEPTION_VECTOR_BASE_ADDR | \ | 109 | : : "r" (EXCEPTION_VECTOR_BASE_ADDR | \ |
110 | VECTOR_ADDRESS_OFFSET_MODE16)); | 110 | VECTOR_ADDRESS_OFFSET_MODE16)); |
111 | } | 111 | } |
112 | |||
113 | /* | ||
114 | * Generic, controller-independent functions: | ||
115 | */ | ||
116 | int show_interrupts(struct seq_file *p, void *v) | ||
117 | { | ||
118 | int i = *(loff_t *)v, cpu; | ||
119 | struct irqaction *action; | ||
120 | unsigned long flags; | ||
121 | |||
122 | if (i == 0) { | ||
123 | seq_puts(p, " "); | ||
124 | for_each_online_cpu(cpu) | ||
125 | seq_printf(p, "CPU%d ", cpu); | ||
126 | seq_putc(p, '\n'); | ||
127 | } | ||
128 | |||
129 | if (i < NR_IRQS) { | ||
130 | struct irq_desc *desc = irq_to_desc(i); | ||
131 | |||
132 | raw_spin_lock_irqsave(&desc->lock, flags); | ||
133 | action = desc->action; | ||
134 | if (!action) | ||
135 | goto unlock; | ||
136 | |||
137 | seq_printf(p, "%3d: ", i); | ||
138 | seq_printf(p, "%10u ", kstat_irqs(i)); | ||
139 | seq_printf(p, " %8s", irq_desc_get_chip(desc)->name ? : "-"); | ||
140 | seq_printf(p, " %s", action->name); | ||
141 | for (action = action->next; action; action = action->next) | ||
142 | seq_printf(p, ", %s", action->name); | ||
143 | |||
144 | seq_putc(p, '\n'); | ||
145 | unlock: | ||
146 | raw_spin_unlock_irqrestore(&desc->lock, flags); | ||
147 | } | ||
148 | |||
149 | return 0; | ||
150 | } | ||