Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Add forgotten BGE_EVCNT_INCR() for spurious inte...
details: https://anonhg.NetBSD.org/src/rev/42e3d8700344
branches: trunk
changeset: 352872:42e3d8700344
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Thu Apr 13 09:25:33 2017 +0000
description:
Add forgotten BGE_EVCNT_INCR() for spurious interrupt.
diffstat:
sys/dev/pci/if_bge.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (33 lines):
diff -r e038b2ec8952 -r 42e3d8700344 sys/dev/pci/if_bge.c
--- a/sys/dev/pci/if_bge.c Thu Apr 13 09:18:18 2017 +0000
+++ b/sys/dev/pci/if_bge.c Thu Apr 13 09:25:33 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_bge.c,v 1.305 2017/04/13 04:27:46 msaitoh Exp $ */
+/* $NetBSD: if_bge.c,v 1.306 2017/04/13 09:25:33 msaitoh Exp $ */
/*
* Copyright (c) 2001 Wind River Systems
@@ -79,7 +79,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.305 2017/04/13 04:27:46 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.306 2017/04/13 09:25:33 msaitoh Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -4767,12 +4767,14 @@
if (sc->bge_flags & BGEF_TAGGED_STATUS) {
if (sc->bge_lasttag == statustag &&
(~pcistate & intrmask)) {
+ BGE_EVCNT_INCR(sc->bge_ev_intr_spurious);
return (0);
}
sc->bge_lasttag = statustag;
} else {
if (!(statusword & BGE_STATFLAG_UPDATED) &&
!(~pcistate & intrmask)) {
+ BGE_EVCNT_INCR(sc->bge_ev_intr_spurious2);
return (0);
}
statustag = 0;
Home |
Main Index |
Thread Index |
Old Index