diff options
author | adrian <adrian@FreeBSD.org> | 2012-08-14 22:30:17 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2012-08-14 22:30:17 +0000 |
commit | 998c54f3045b7e26aef503ec0a3f159772332605 (patch) | |
tree | 87b1156266cd2b3cf90b6cb5512dcf01d8ed589f | |
parent | 760fb1e488cafd3cde422427069d6ac228172a6f (diff) | |
download | FreeBSD-src-998c54f3045b7e26aef503ec0a3f159772332605.zip FreeBSD-src-998c54f3045b7e26aef503ec0a3f159772332605.tar.gz |
Add an assertion to check that the given TXQ is _not_ locked.
-rw-r--r-- | sys/dev/ath/if_athvar.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/ath/if_athvar.h b/sys/dev/ath/if_athvar.h index a1a0ad9..617ebf8 100644 --- a/sys/dev/ath/if_athvar.h +++ b/sys/dev/ath/if_athvar.h @@ -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) \ |