Skip to content

Commit

Permalink
mt76: only kick tx queue if frames were queued
Browse files Browse the repository at this point in the history
Slightly reduces unnecessary device register accesses

Signed-off-by: Felix Fietkau <nbd@nbd.name>
  • Loading branch information
nbd168 committed Dec 4, 2021
1 parent 047b9a9 commit fea36e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tx.c
Expand Up @@ -490,7 +490,8 @@ mt76_txq_send_burst(struct mt76_phy *phy, struct mt76_queue *q,
n_frames++;
} while (1);

dev->queue_ops->kick(dev, q);
if (n_frames)
dev->queue_ops->kick(dev, q);

return n_frames;
}
Expand Down

0 comments on commit fea36e0

Please sign in to comment.