Commit 0b2ff1ff authored by Jeff Xie's avatar Jeff Xie Committed by Kalle Valo

mwl8k: move spin_lock_bh to spin_lock in tasklet

It is unnecessary to call spin_lock_bh in a tasklet.
Signed-off-by: default avatarJeff Xie <chongguiguzi@gmail.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 0b68fe10
...@@ -4639,7 +4639,7 @@ static void mwl8k_tx_poll(unsigned long data) ...@@ -4639,7 +4639,7 @@ static void mwl8k_tx_poll(unsigned long data)
limit = 32; limit = 32;
spin_lock_bh(&priv->tx_lock); spin_lock(&priv->tx_lock);
for (i = 0; i < mwl8k_tx_queues(priv); i++) for (i = 0; i < mwl8k_tx_queues(priv); i++)
limit -= mwl8k_txq_reclaim(hw, i, limit, 0); limit -= mwl8k_txq_reclaim(hw, i, limit, 0);
...@@ -4649,7 +4649,7 @@ static void mwl8k_tx_poll(unsigned long data) ...@@ -4649,7 +4649,7 @@ static void mwl8k_tx_poll(unsigned long data)
priv->tx_wait = NULL; priv->tx_wait = NULL;
} }
spin_unlock_bh(&priv->tx_lock); spin_unlock(&priv->tx_lock);
if (limit) { if (limit) {
writel(~MWL8K_A2H_INT_TX_DONE, writel(~MWL8K_A2H_INT_TX_DONE,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment