]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: use coarse boottime for airtime fairness code
authorFelix Fietkau <nbd@nbd.name>
Fri, 17 Dec 2021 11:42:58 +0000 (12:42 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 20 Dec 2021 09:24:41 +0000 (10:24 +0100)
commitd5afddecee16ecd6a95a966665d12bcd187a01e5
tree01b41505b220e6458c7b3a6eda358cfb2d35f687
parent843d0555c4b182b4013aba33c36614144e8084e7
mac80211: use coarse boottime for airtime fairness code

The time values used by the airtime fairness code only need to be accurate
enough to cover station activity detection.
Using ktime_get_coarse_boottime_ns instead of ktime_get_boottime_ns will
drop the accuracy down to jiffies intervals, but at the same time saves
a lot of CPU cycles in a hot path

Signed-off-by: Felix Fietkau <nbd@nbd.name>
Acked-by: Toke Høiland-Jørgensen <toke@redhat.com>
Link: https://lore.kernel.org/r/20211217114258.14619-1-nbd@nbd.name
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/tx.c