mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: convert from tx tasklet to tx worker thread
This should improve performance by allowing the scheduler to move the tx scheduling work to idle CPUs Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
+1
-2
@@ -118,7 +118,7 @@ static int mt7615_poll_tx(struct napi_struct *napi, int budget)
|
||||
mt7615_tx_cleanup(dev);
|
||||
|
||||
mt7615_pm_power_save_sched(dev);
|
||||
tasklet_schedule(&dev->mt76.tx_tasklet);
|
||||
mt76_worker_schedule(&dev->mt76.tx_worker);
|
||||
|
||||
if (napi_complete_done(napi, 0))
|
||||
mt7615_irq_enable(dev, MT_INT_TX_DONE_ALL);
|
||||
@@ -324,6 +324,5 @@ void mt7615_dma_cleanup(struct mt7615_dev *dev)
|
||||
MT_WPDMA_GLO_CFG_RX_DMA_EN);
|
||||
mt76_set(dev, MT_WPDMA_GLO_CFG, MT_WPDMA_GLO_CFG_SW_RESET);
|
||||
|
||||
tasklet_kill(&dev->mt76.tx_tasklet);
|
||||
mt76_dma_cleanup(&dev->mt76);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user