diff options
author | adrian <adrian@FreeBSD.org> | 2013-05-09 15:57:55 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2013-05-09 15:57:55 +0000 |
commit | 19cabfe6e2b313764d0e1527c65d6351426edf74 (patch) | |
tree | 737c98144ba4c5c4c79291a8937eb5003cd2ff71 | |
parent | ac45fc3bdc389726828ab92a3ded300ebffb64fe (diff) | |
download | FreeBSD-src-19cabfe6e2b313764d0e1527c65d6351426edf74.zip FreeBSD-src-19cabfe6e2b313764d0e1527c65d6351426edf74.tar.gz |
Update the holding buffer locking for EDMA.
-rw-r--r-- | sys/dev/ath/if_ath_tx_edma.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ath/if_ath_tx_edma.c b/sys/dev/ath/if_ath_tx_edma.c index c06264f..b86352a 100644 --- a/sys/dev/ath/if_ath_tx_edma.c +++ b/sys/dev/ath/if_ath_tx_edma.c @@ -409,7 +409,7 @@ ath_edma_xmit_handoff_mcast(struct ath_softc *sc, struct ath_txq *txq, wh = mtod(bf_last->bf_m, struct ieee80211_frame *); wh->i_fc[1] |= IEEE80211_FC1_MORE_DATA; - /* sync descriptor to memory */ + /* re-sync buffer to memory */ bus_dmamap_sync(sc->sc_dmat, bf_last->bf_dmamap, BUS_DMASYNC_PREWRITE); @@ -734,9 +734,9 @@ ath_edma_tx_processq(struct ath_softc *sc, int dosched) * buffer any longer. */ if (bf->bf_flags & ATH_BUF_FIFOEND) { - ATH_TXBUF_LOCK(sc); + ATH_TXQ_LOCK(txq); ath_txq_freeholdingbuf(sc, txq); - ATH_TXBUF_UNLOCK(sc); + ATH_TXQ_UNLOCK(txq); } /* |