]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k_hw: merge codepaths that access the cycle counter registers
authorFelix Fietkau <nbd@openwrt.org>
Sun, 3 Oct 2010 17:07:17 +0000 (19:07 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 6 Oct 2010 20:26:01 +0000 (16:26 -0400)
commit085a1db098e1d094a0d0d8c5ccbfbab9acfff509
tree492fd72be595cb7f397d83b2cd4a567cbec73cb4
parent4a02d5cd6f6db80187c945d6977e6eed8ec38be2
ath9k_hw: merge codepaths that access the cycle counter registers

The cycle counters are used by ANI to determine the amount of time that the
radio spent not receiving or transmitting. They're also used for debugging
purposes if the baseband watchdog on AR9003 detects a lockup.
In the future, we want to use these counters to determine the medium utilization
and export this information via survey. For that, we need to make sure that
the counter is only accessed from one place, which also ensures that
wraparounds won't occur at inconvenient points in time.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ani.c
drivers/net/wireless/ath/ath9k/ani.h
drivers/net/wireless/ath/ath9k/ar5008_phy.c
drivers/net/wireless/ath/ath9k/ar9003_phy.c
drivers/net/wireless/ath/ath9k/hw.h