Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Don't KASSERT that we are MPSAFE if ! DWCGMAC_MPSAFE
details: https://anonhg.NetBSD.org/src/rev/c651d517103d
branches: trunk
changeset: 358317:c651d517103d
user: martin <martin%NetBSD.org@localhost>
date: Thu Dec 21 12:09:43 2017 +0000
description:
Don't KASSERT that we are MPSAFE if ! DWCGMAC_MPSAFE
diffstat:
sys/dev/ic/dwc_gmac.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 1843f5ce413e -r c651d517103d sys/dev/ic/dwc_gmac.c
--- a/sys/dev/ic/dwc_gmac.c Thu Dec 21 11:52:00 2017 +0000
+++ b/sys/dev/ic/dwc_gmac.c Thu Dec 21 12:09:43 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dwc_gmac.c,v 1.44 2017/12/19 03:32:35 ozaki-r Exp $ */
+/* $NetBSD: dwc_gmac.c,v 1.45 2017/12/21 12:09:43 martin Exp $ */
/*-
* Copyright (c) 2013, 2014 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: dwc_gmac.c,v 1.44 2017/12/19 03:32:35 ozaki-r Exp $");
+__KERNEL_RCSID(1, "$NetBSD: dwc_gmac.c,v 1.45 2017/12/21 12:09:43 martin Exp $");
/* #define DWC_GMAC_DEBUG 1 */
@@ -838,7 +838,9 @@
dwc_gmac_start(struct ifnet *ifp)
{
struct dwc_gmac_softc *sc = ifp->if_softc;
+#ifdef DWCGMAC_MPSAFE
KASSERT(if_is_mpsafe(ifp));
+#endif
mutex_enter(sc->sc_lock);
if (!sc->sc_stopping) {
Home |
Main Index |
Thread Index |
Old Index