Date: Tue, 15 Dec 2015 04:44:07 +0000 (UTC) From: Adrian Chadd <adrian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r292246 - head/sys/mips/atheros Message-ID: <201512150444.tBF4i7iI088692@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: adrian Date: Tue Dec 15 04:44:06 2015 New Revision: 292246 URL: https://svnweb.freebsd.org/changeset/base/292246 Log: [ar71xx] always count interrupts, spurious or otherwise. This aids in debugging. Modified: head/sys/mips/atheros/apb.c Modified: head/sys/mips/atheros/apb.c ============================================================================== --- head/sys/mips/atheros/apb.c Tue Dec 15 04:43:28 2015 (r292245) +++ head/sys/mips/atheros/apb.c Tue Dec 15 04:44:06 2015 (r292246) @@ -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]); } }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201512150444.tBF4i7iI088692>