From: Felix Fietkau Date: Fri, 15 Oct 2010 23:01:48 +0000 (+0200) Subject: ath9k_hw: optimize all descriptor access functions X-Git-Tag: v2.6.38-rc1~476^2~558^2~144 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ada9f1cacb66b74a68254521bb5e3ca4eb8fa871;p=pandora-kernel.git 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 Signed-off-by: John W. Linville --- Reading git-diff-tree failed