mt76: mt7921: avoid unnecessary spin_lock/spin_unlock in mt7921_mcu_tx_done_event
Do not grab the spinlock in mt7921_mcu_tx_done_event routine if not necessary. Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
committed by
Felix Fietkau
parent
df040215c0
commit
305023510f
@@ -534,9 +534,7 @@ mt7921_mcu_tx_done_event(struct mt7921_dev *dev, struct sk_buff *skb)
|
||||
mt7921_mcu_tx_rate_parse(mphy->mt76, &peer,
|
||||
&msta->stats.tx_rate,
|
||||
le16_to_cpu(event->tx_rate));
|
||||
|
||||
spin_lock_bh(&dev->sta_poll_lock);
|
||||
break;
|
||||
return;
|
||||
}
|
||||
spin_unlock_bh(&dev->sta_poll_lock);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user