svn commit: r292246 - head/sys/mips/atheros

Adrian Chadd adrian at FreeBSD.org
Tue Dec 15 04:44:08 UTC 2015


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]);
 		}
 	}
 


More information about the svn-src-head mailing list