diff options
author | Felix Fietkau <nbd@nbd.name> | 2019-02-01 00:38:28 +0300 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2019-05-01 14:03:59 +0300 |
commit | 6fe533378795f87bfa5075520742116f13d30ed3 (patch) | |
tree | 7c42cee4dea4cfbbe95ea2d65c2ce9af2b6817ec /drivers/net/wireless/mediatek/mt76/mt76x02.h | |
parent | 2ac515a5d74f26963362d5da9589c67ca3663338 (diff) | |
download | linux-6fe533378795f87bfa5075520742116f13d30ed3.tar.xz |
mt76: mt76x02: remove irqsave/restore in locking for tx status fifo
Use a separate lock and spin_trylock to avoid disabling interrupts.
Should improve performance and latency
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt76x02.h')
-rw-r--r-- | drivers/net/wireless/mediatek/mt76/mt76x02.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt76x02.h b/drivers/net/wireless/mediatek/mt76/mt76x02.h index cd37f44580ba..9f103c2506db 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x02.h +++ b/drivers/net/wireless/mediatek/mt76/mt76x02.h @@ -86,6 +86,7 @@ struct mt76x02_dev { u8 txdone_seq; DECLARE_KFIFO_PTR(txstatus_fifo, struct mt76x02_tx_status); + spinlock_t txstatus_fifo_lock; struct sk_buff *rx_head; |