mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
ANDROID: 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>
This commit is contained in:
committed by
Dmitry Shmidt
parent
b4ffddec34
commit
d05890d37e
@@ -374,16 +374,17 @@ static void dump_allregs(struct fiq_debugger_state *state, unsigned *regs)
|
|||||||
static void dump_irqs(struct fiq_debugger_state *state)
|
static void dump_irqs(struct fiq_debugger_state *state)
|
||||||
{
|
{
|
||||||
int n;
|
int n;
|
||||||
|
struct irq_desc *desc;
|
||||||
|
|
||||||
debug_printf(state, "irqnr total since-last status name\n");
|
debug_printf(state, "irqnr total since-last status name\n");
|
||||||
for (n = 0; n < NR_IRQS; n++) {
|
for_each_irq_desc(n, desc) {
|
||||||
struct irqaction *act = irq_desc[n].action;
|
struct irqaction *act = desc->action;
|
||||||
if (!act && !kstat_irqs(n))
|
if (!act && !kstat_irqs(n))
|
||||||
continue;
|
continue;
|
||||||
debug_printf(state, "%5d: %10u %11u %8x %s\n", n,
|
debug_printf(state, "%5d: %10u %11u %8x %s\n", n,
|
||||||
kstat_irqs(n),
|
kstat_irqs(n),
|
||||||
kstat_irqs(n) - state->last_irqs[n],
|
kstat_irqs(n) - state->last_irqs[n],
|
||||||
irq_desc[n].status_use_accessors,
|
desc->status_use_accessors,
|
||||||
(act && act->name) ? act->name : "???");
|
(act && act->name) ? act->name : "???");
|
||||||
state->last_irqs[n] = kstat_irqs(n);
|
state->last_irqs[n] = kstat_irqs(n);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user