1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-24 11:29:10 +00:00

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

This commit is contained in:
Adrian Chadd 2012-08-14 22:30:17 +00:00
parent c64253a898
commit e5661062ee
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=239261

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