summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2005-03-01 11:54:46 +0000
committerglebius <glebius@FreeBSD.org>2005-03-01 11:54:46 +0000
commit1a5cca00eb77f1b51bbcc8eb495d34aea32f434c (patch)
tree05a12bea660a91c7e802a8275693fac869fe3b90
parent2004ab14b03a640c2e54859ae6a9b56f18e858da (diff)
downloadFreeBSD-src-1a5cca00eb77f1b51bbcc8eb495d34aea32f434c.zip
FreeBSD-src-1a5cca00eb77f1b51bbcc8eb495d34aea32f434c.tar.gz
Add macro NET_CALLOUT_MPSAFE, which should be used when initializing
network related callouts. Reviewed by: rwatson
-rw-r--r--sys/sys/mutex.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/mutex.h b/sys/sys/mutex.h
index 8010ebb..5fe31eb 100644
--- a/sys/sys/mutex.h
+++ b/sys/sys/mutex.h
@@ -395,6 +395,7 @@ extern int debug_mpsafenet; /* defined in net/netisr.c */
if (!debug_mpsafenet) \
mtx_assert(&Giant, MA_OWNED); \
} while (0)
+#define NET_CALLOUT_MPSAFE (debug_mpsafenet ? CALLOUT_MPSAFE : 0)
#define UGAR(rval) do { \
int _val = (rval); \
OpenPOWER on IntegriCloud