From: Sujith Manoharan Date: Sun, 28 Apr 2013 21:01:26 +0530 Subject: [ath9k-devel] [PATCH 08/20] ath10k: Use lockless SKB queue routines In-Reply-To: <1367163098-22787-1-git-send-email-sujith@msujith.org> References: <1367163098-22787-1-git-send-email-sujith@msujith.org> Message-ID: <1367163098-22787-8-git-send-email-sujith@msujith.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org From: Sujith Manoharan The HTC TX queue is protected by "tx_lock". Signed-off-by: Sujith Manoharan --- drivers/net/wireless/ath/ath10k/htc.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/htc.c b/drivers/net/wireless/ath/ath10k/htc.c index b303c35..c6966f9 100644 --- a/drivers/net/wireless/ath/ath10k/htc.c +++ b/drivers/net/wireless/ath/ath10k/htc.c @@ -209,7 +209,7 @@ static struct sk_buff *ath10k_htc_get_skb_credit_based(struct ath10k_htc *htc, int remainder; unsigned int transfer_len; - skb = skb_dequeue(&ep->tx_queue); + skb = __skb_dequeue(&ep->tx_queue); if (!skb) return NULL; @@ -240,7 +240,7 @@ static struct sk_buff *ath10k_htc_get_skb_credit_based(struct ath10k_htc *htc, credits_required = 0; else { if (ep->tx_credits < credits_required) { - skb_queue_head(&ep->tx_queue, skb); + __skb_queue_head(&ep->tx_queue, skb); ath10k_htc_recalc_queue(ep, 1); return NULL; } @@ -268,7 +268,7 @@ static struct sk_buff *ath10k_htc_get_skb(struct ath10k_htc *htc, if (!resources) return NULL; - skb = skb_dequeue(&ep->tx_queue); + skb = __skb_dequeue(&ep->tx_queue); if (!skb) return NULL; @@ -325,7 +325,7 @@ int ath10k_htc_send(struct ath10k_htc *htc, skb_push(skb, sizeof(struct ath10k_htc_hdr)); spin_lock_bh(&htc->tx_lock); - skb_queue_tail(&ep->tx_queue, skb); + __skb_queue_tail(&ep->tx_queue, skb); ath10k_htc_recalc_queue(ep, 1); spin_unlock_bh(&htc->tx_lock); @@ -369,7 +369,7 @@ static void ath10k_htc_flush_endpoint_tx(struct ath10k_htc *htc, spin_lock_bh(&htc->tx_lock); for (;;) { - skb = skb_dequeue(&ep->tx_queue); + skb = __skb_dequeue(&ep->tx_queue); if (!skb) break; -- 1.8.2.2