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)
commit9dbebc7fd07ab66341dce8d001272db400c11e03
tree492fd72be595cb7f397d83b2cd4a567cbec73cb4
parent6497827f53eb90dcf30c5d6414c83238f722e8ae
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