]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k_hw: optimize tx status descriptor processing
authorFelix Fietkau <nbd@openwrt.org>
Fri, 15 Oct 2010 18:03:30 +0000 (20:03 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 9 Nov 2010 21:13:24 +0000 (16:13 -0500)
commit0ed05506cac271cc20329e4b1fa299a4e0e9db74
treed81c63dd8cb99cc29a6f53f5b5fca1eea860ddc8
parent827ed5f01c61888f2545e9cbf46f47fa742c2ff6
ath9k_hw: optimize tx status descriptor processing

Disassembly shows, that at least on MIPS, the compiler generates a lot of
memory accesses to the same location in the descriptor field parsing.
Since it is operating on uncached memory, this can be quite expensive in
this hot path.
Change the code a bit to help the compiler optimize it properly, and get
rid of some unused fields in the ath_tx_status struct.

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