summaryrefslogtreecommitdiffstats
path: root/sys/contrib
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2011-10-19 10:08:58 +0000
committerbz <bz@FreeBSD.org>2011-10-19 10:08:58 +0000
commit5be0c466b9f9fcb0d3abf2f951f08503ad5ee0d6 (patch)
tree2dcc594f823226e1a248c7d8e38a97f5aa4a6025 /sys/contrib
parentc9c086db96f0d7ade3c100ee4c16fedbf42feea2 (diff)
downloadFreeBSD-src-5be0c466b9f9fcb0d3abf2f951f08503ad5ee0d6.zip
FreeBSD-src-5be0c466b9f9fcb0d3abf2f951f08503ad5ee0d6.tar.gz
In the non-FreeBSD case we do not expect PF_LOCK and friends to do anything.
MFC after: 3 days
Diffstat (limited to 'sys/contrib')
-rw-r--r--sys/contrib/pf/net/pfvar.h17
1 files changed, 4 insertions, 13 deletions
diff --git a/sys/contrib/pf/net/pfvar.h b/sys/contrib/pf/net/pfvar.h
index 2aa4bbf..4098691 100644
--- a/sys/contrib/pf/net/pfvar.h
+++ b/sys/contrib/pf/net/pfvar.h
@@ -251,19 +251,10 @@ VNET_DECLARE(struct mtx, pf_task_mtx);
mtx_unlock(&V_pf_task_mtx); \
} while(0)
#else
-extern struct mtx pf_task_mtx;
-
-#define PF_ASSERT(h) mtx_assert(&pf_task_mtx, (h))
-
-#define PF_LOCK() do { \
- PF_ASSERT(MA_NOTOWNED); \
- mtx_lock(&pf_task_mtx); \
-} while(0)
-#define PF_UNLOCK() do { \
- PF_ASSERT(MA_OWNED); \
- mtx_unlock(&pf_task_mtx); \
-} while(0)
-#endif
+#define PF_ASSERT(h)
+#define PF_LOCK()
+#define PF_UNLOCK()
+#endif /* __FreeBSD__ */
#define PF_COPYIN(uaddr, kaddr, len, r) do { \
PF_UNLOCK(); \
OpenPOWER on IntegriCloud