diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-10-16 01:01:48 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-11-09 16:13:25 -0500 |
commit | ada9f1cacb66b74a68254521bb5e3ca4eb8fa871 (patch) | |
tree | b8a256f5f4bd42c9ec37102638cc49e1a11eb242 /drivers/net/wireless/ath/ath5k | |
parent | f0e94b479c987abef17eb18e5c8e0ed178d00cd4 (diff) |
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/ath5k')
0 files changed, 0 insertions, 0 deletions