mwl8k: move spin_lock_bh to spin_lock in tasklet

It is unnecessary to call spin_lock_bh in a tasklet.

Signed-off-by: Jeff Xie <chongguiguzi@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
Jeff Xie 2019-03-20 00:24:05 +08:00 committed by Kalle Valo
parent 0b68fe10b8
commit 0b2ff1ff64
1 changed files with 2 additions and 2 deletions

View File

@ -4639,7 +4639,7 @@ static void mwl8k_tx_poll(unsigned long data)
limit = 32;
spin_lock_bh(&priv->tx_lock);
spin_lock(&priv->tx_lock);
for (i = 0; i < mwl8k_tx_queues(priv); i++)
limit -= mwl8k_txq_reclaim(hw, i, limit, 0);
@ -4649,7 +4649,7 @@ static void mwl8k_tx_poll(unsigned long data)
priv->tx_wait = NULL;
}
spin_unlock_bh(&priv->tx_lock);
spin_unlock(&priv->tx_lock);
if (limit) {
writel(~MWL8K_A2H_INT_TX_DONE,