]> bbs.cooldavid.org Git - net-next-2.6.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)
commite0e9bc82fb0813fd353b0abbba0f1d6a680cc77c
treed81c63dd8cb99cc29a6f53f5b5fca1eea860ddc8
parent45684c75f9aa80eb477465bddcf79c9ad95206c7
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