aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArve Hjønnevåg2012-11-26 18:23:33 -0600
committerArve Hjønnevåg2013-02-22 17:27:45 -0600
commit8ab64be7c59330f34921dace18ab8a92cbc536a5 (patch)
treea96be9106a0d1a81176512e6467a04826164f47b
parentb73d1c2590b8af4355fdc0f1fed6f791bd6e89b7 (diff)
downloadkernel-common-8ab64be7c59330f34921dace18ab8a92cbc536a5.tar.gz
kernel-common-8ab64be7c59330f34921dace18ab8a92cbc536a5.tar.xz
kernel-common-8ab64be7c59330f34921dace18ab8a92cbc536a5.zip
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)
374static void dump_irqs(struct fiq_debugger_state *state) 374static void dump_irqs(struct fiq_debugger_state *state)
375{ 375{
376 int n; 376 int n;
377 struct irq_desc *desc;
377 378
378 debug_printf(state, "irqnr total since-last status name\n"); 379 debug_printf(state, "irqnr total since-last status name\n");
379 for (n = 0; n < NR_IRQS; n++) { 380 for_each_irq_desc(n, desc) {
380 struct irqaction *act = irq_desc[n].action; 381 struct irqaction *act = desc->action;
381 if (!act && !kstat_irqs(n)) 382 if (!act && !kstat_irqs(n))
382 continue; 383 continue;
383 debug_printf(state, "%5d: %10u %11u %8x %s\n", n, 384 debug_printf(state, "%5d: %10u %11u %8x %s\n", n,
384 kstat_irqs(n), 385 kstat_irqs(n),
385 kstat_irqs(n) - state->last_irqs[n], 386 kstat_irqs(n) - state->last_irqs[n],
386 irq_desc[n].status_use_accessors, 387 desc->status_use_accessors,
387 (act && act->name) ? act->name : "???"); 388 (act && act->name) ? act->name : "???");
388 state->last_irqs[n] = kstat_irqs(n); 389 state->last_irqs[n] = kstat_irqs(n);
389 } 390 }