svn commit: r239261 - head/sys/dev/ath
Adrian Chadd
adrian at FreeBSD.org
Tue Aug 14 22:30:17 UTC 2012
Author: adrian
Date: Tue Aug 14 22:30:17 2012
New Revision: 239261
URL: http://svn.freebsd.org/changeset/base/239261
Log:
Add an assertion to check that the given TXQ is _not_ locked.
Modified:
head/sys/dev/ath/if_athvar.h
Modified: head/sys/dev/ath/if_athvar.h
==============================================================================
--- head/sys/dev/ath/if_athvar.h Tue Aug 14 22:21:46 2012 (r239260)
+++ head/sys/dev/ath/if_athvar.h Tue Aug 14 22:30:17 2012 (r239261)
@@ -327,7 +327,10 @@ struct ath_txq {
#define ATH_TXQ_LOCK_DESTROY(_tq) mtx_destroy(&(_tq)->axq_lock)
#define ATH_TXQ_LOCK(_tq) mtx_lock(&(_tq)->axq_lock)
#define ATH_TXQ_UNLOCK(_tq) mtx_unlock(&(_tq)->axq_lock)
-#define ATH_TXQ_LOCK_ASSERT(_tq) mtx_assert(&(_tq)->axq_lock, MA_OWNED)
+#define ATH_TXQ_LOCK_ASSERT(_tq) \
+ mtx_assert(&(_tq)->axq_lock, MA_OWNED)
+#define ATH_TXQ_UNLOCK_ASSERT(_tq) \
+ mtx_assert(&(_tq)->axq_lock, MA_NOTOWNED)
#define ATH_TXQ_IS_LOCKED(_tq) mtx_owned(&(_tq)->axq_lock)
#define ATH_TID_LOCK_ASSERT(_sc, _tid) \
More information about the svn-src-head
mailing list