]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ath9k: fix extending the rx timestamp with the hardware TSF
authorFelix Fietkau <nbd@openwrt.org>
Sat, 12 Jun 2010 04:33:54 +0000 (00:33 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 14 Jun 2010 19:39:31 +0000 (15:39 -0400)
commita6d2055b02dde1067075795274672720baadd3ca
treeec2014019e26fc19be90c81c13373cbe1f7afe09
parentebe297c35d5e7137a2d626b49b4c8c4c0ab4f242
ath9k: fix extending the rx timestamp with the hardware TSF

AR5416 and all newer chipsets use a 32 bit rx timestamp, so there
is no need to keep the 15 bit timestamp extending logic around.

This patch removes ath9k_hw_extend_tsf (replaced by a call to
ath9k_hw_gettsf64), and reduces the frequency of TSF reads, which
can improve performance in some cases.

This change also has the side effect of making rx timestamps
more accurate.

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