aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArve Hjønnevåg <arve@android.com>2012-11-26 16:23:33 -0800
committerArve Hjønnevåg <arve@android.com>2013-04-29 14:52:24 -0700
commitb3fa85c55e848c8b6f96d4a8c7cc49ad138790ca (patch)
tree98a9b9251f12116cacc8384b16b3120435f9881d
parent61131fc03ed2117587d4d9e21bda9929b2a620d9 (diff)
downloadvexpress-lsk-b3fa85c55e848c8b6f96d4a8c7cc49ad138790ca.tar.gz
ARM: fiq_debugger: Fix to compile on 3.7
Use for_each_irq_desc in arch/arm/common/fiq_debugger.c Signed-off-by: Arve Hjønnevåg <arve@android.com>
-rw-r--r--arch/arm/common/fiq_debugger.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/arm/common/fiq_debugger.c b/arch/arm/common/fiq_debugger.c
index 053680b6c32..5e9005bfdbb 100644
--- a/arch/arm/common/fiq_debugger.c
+++ b/arch/arm/common/fiq_debugger.c
@@ -374,16 +374,17 @@ static void dump_allregs(struct fiq_debugger_state *state, unsigned *regs)
static void dump_irqs(struct fiq_debugger_state *state)
{
int n;
+ struct irq_desc *desc;
debug_printf(state, "irqnr total since-last status name\n");
- for (n = 0; n < NR_IRQS; n++) {
- struct irqaction *act = irq_desc[n].action;
+ for_each_irq_desc(n, desc) {
+ struct irqaction *act = desc->action;
if (!act && !kstat_irqs(n))
continue;
debug_printf(state, "%5d: %10u %11u %8x %s\n", n,
kstat_irqs(n),
kstat_irqs(n) - state->last_irqs[n],
- irq_desc[n].status_use_accessors,
+ desc->status_use_accessors,
(act && act->name) ? act->name : "???");
state->last_irqs[n] = kstat_irqs(n);
}