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)
commit6a789ba679d652587532cec2a0e0274fda172f3b
tree01b41505b220e6458c7b3a6eda358cfb2d35f687
parent75c5bd68b699bbcb6d25879644d62de4da14ab92
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