aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/rc.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-10-16 01:01:48 +0200
committerJohn W. Linville <linville@tuxdriver.com>2010-11-09 16:13:25 -0500
commitada9f1cacb66b74a68254521bb5e3ca4eb8fa871 (patch)
treeb8a256f5f4bd42c9ec37102638cc49e1a11eb242 /drivers/net/wireless/ath/ath9k/rc.c
parentf0e94b479c987abef17eb18e5c8e0ed178d00cd4 (diff)
downloadkernel_samsung_smdk4412-ada9f1cacb66b74a68254521bb5e3ca4eb8fa871.zip
kernel_samsung_smdk4412-ada9f1cacb66b74a68254521bb5e3ca4eb8fa871.tar.gz
kernel_samsung_smdk4412-ada9f1cacb66b74a68254521bb5e3ca4eb8fa871.tar.bz2
ath9k_hw: optimize all descriptor access functions
Because all of the descriptor data structures are marked as __packed, GCC assumes the worst case wrt. alignment and generates unaligned load/store instructions on MIPS for access to all fields. Since descriptors always have to be 4-byte-aligned, we can just mark the data structures with __aligned(4), which allows GCC to generate much more efficient code. Verified through disassembly and OProfile comparisons. Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/rc.c')
0 files changed, 0 insertions, 0 deletions