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:
+3
-3
@@ -160,7 +160,7 @@ mt76_testmode_tx_start(struct mt76_dev *dev)
|
||||
td->tx_queued = 0;
|
||||
td->tx_done = 0;
|
||||
td->tx_pending = td->tx_count;
|
||||
tasklet_schedule(&dev->tx_tasklet);
|
||||
mt76_worker_schedule(&dev->tx_worker);
|
||||
}
|
||||
|
||||
static void
|
||||
@@ -168,11 +168,11 @@ mt76_testmode_tx_stop(struct mt76_dev *dev)
|
||||
{
|
||||
struct mt76_testmode_data *td = &dev->test;
|
||||
|
||||
tasklet_disable(&dev->tx_tasklet);
|
||||
mt76_worker_disable(&dev->tx_worker);
|
||||
|
||||
td->tx_pending = 0;
|
||||
|
||||
tasklet_enable(&dev->tx_tasklet);
|
||||
mt76_worker_enable(&dev->tx_worker);
|
||||
|
||||
wait_event_timeout(dev->tx_wait, td->tx_done == td->tx_queued, 10 * HZ);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user