]> git.baikalelectronics.ru Git - kernel.git/commit
mt76: add utility functions for deferring work to a kernel thread
authorFelix Fietkau <nbd@nbd.name>
Fri, 24 Jul 2020 12:43:49 +0000 (14:43 +0200)
committerFelix Fietkau <nbd@nbd.name>
Thu, 24 Sep 2020 16:10:18 +0000 (18:10 +0200)
commit15215de0e16c00faba4970cfc06b0e9b20ee0594
tree9b5e8b981a82f67f79ec4bd7fd5f1584b5939cfd
parentfd00c6ed29a0b7ec46ceac7b70b9812e519830e3
mt76: add utility functions for deferring work to a kernel thread

In order to avoid keeping work like tx scheduling pinned to the CPU it was
scheduled from, it makes sense to switch from tasklets to kernel threads.

Unlike a workqueue, this one only allows one fixed worker function to be
executed by the worker thread. Because of that, there is less locking
and less code for scheduling involved.
This is important because the tx worker is scheduled often in a hot path

Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/util.c
drivers/net/wireless/mediatek/mt76/util.h