svn commit: r250408 - head/sys/dev/ath

Adrian Chadd adrian at FreeBSD.org
Thu May 9 15:57:55 UTC 2013


Author: adrian
Date: Thu May  9 15:57:55 2013
New Revision: 250408
URL: http://svnweb.freebsd.org/changeset/base/250408

Log:
  Update the holding buffer locking for EDMA.

Modified:
  head/sys/dev/ath/if_ath_tx_edma.c

Modified: head/sys/dev/ath/if_ath_tx_edma.c
==============================================================================
--- head/sys/dev/ath/if_ath_tx_edma.c	Thu May  9 14:43:36 2013	(r250407)
+++ head/sys/dev/ath/if_ath_tx_edma.c	Thu May  9 15:57:55 2013	(r250408)
@@ -409,7 +409,7 @@ ath_edma_xmit_handoff_mcast(struct ath_s
 		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 *s
 		 * 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);
 		}
 
 		/*


More information about the svn-src-all mailing list