diff options
author | Bruno Randolf <br1@einfach.org> | 2010-09-17 06:37:02 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-09-21 19:05:14 +0400 |
commit | 923e5b3d3d773b9956b943ac64f782d5a127bdea (patch) | |
tree | 04baaf5b5f2edb1b467f6e9debc075c2bb2b62cc /drivers/net/wireless/ath/ath5k/base.c | |
parent | 4edd761f4075b03be5932682a2f7b9368dc9e536 (diff) | |
download | linux-923e5b3d3d773b9956b943ac64f782d5a127bdea.tar.xz |
ath5k: Count how many times a queue got stuck
Add a counter to show how many times a queue got stuck in the debugfs queue
file.
Signed-off-by: Bruno Randolf <br1@einfach.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath5k/base.c')
-rw-r--r-- | drivers/net/wireless/ath/ath5k/base.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath5k/base.c b/drivers/net/wireless/ath/ath5k/base.c index afedfeba13dd..cae9fe4676e7 100644 --- a/drivers/net/wireless/ath/ath5k/base.c +++ b/drivers/net/wireless/ath/ath5k/base.c @@ -892,6 +892,7 @@ ath5k_txq_setup(struct ath5k_softc *sc, txq->setup = true; txq->txq_len = 0; txq->txq_poll_mark = false; + txq->txq_stuck = 0; } return &sc->txqs[qnum]; } @@ -2193,6 +2194,7 @@ ath5k_tx_complete_poll_work(struct work_struct *work) "TX queue stuck %d\n", txq->qnum); needreset = true; + txq->txq_stuck++; spin_unlock_bh(&txq->lock); break; } else { |