diff options
author | adrian <adrian@FreeBSD.org> | 2015-12-15 04:44:06 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2015-12-15 04:44:06 +0000 |
commit | 795576f81b0fc88a1bd6ddb4910f13c122d181bc (patch) | |
tree | 908a1a900bbb080d54f0e658290b8a9e819fae80 /sys/mips | |
parent | 9c16fc858ecff582ba964a2d47de4d3640a8010c (diff) | |
download | FreeBSD-src-795576f81b0fc88a1bd6ddb4910f13c122d181bc.zip FreeBSD-src-795576f81b0fc88a1bd6ddb4910f13c122d181bc.tar.gz |
[ar71xx] always count interrupts, spurious or otherwise.
This aids in debugging.
Diffstat (limited to 'sys/mips')
-rw-r--r-- | sys/mips/atheros/apb.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/mips/atheros/apb.c b/sys/mips/atheros/apb.c index 2dc926f..adc3756 100644 --- a/sys/mips/atheros/apb.c +++ b/sys/mips/atheros/apb.c @@ -378,6 +378,8 @@ apb_filter(void *arg) } event = sc->sc_eventstab[irq]; + /* always count interrupts; spurious or otherwise */ + mips_intrcnt_inc(sc->sc_intr_counter[irq]); if (!event || TAILQ_EMPTY(&event->ie_handlers)) { if (irq == APB_INTR_PMC) { td = PCPU_GET(curthread); @@ -385,9 +387,6 @@ apb_filter(void *arg) if (pmc_intr) (*pmc_intr)(PCPU_GET(cpuid), tf); - - mips_intrcnt_inc(sc->sc_intr_counter[irq]); - continue; } /* Ignore timer interrupts */ @@ -397,7 +396,6 @@ apb_filter(void *arg) } intr_event_handle(event, PCPU_GET(curthread)->td_intr_frame); - mips_intrcnt_inc(sc->sc_intr_counter[irq]); } } |