Add an assertion to check that the given TXQ is _not_ locked.

This commit is contained in:
adrian 2012-08-14 22:30:17 +00:00
parent 760fb1e488
commit 998c54f304

View File

@ -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) \