carl9170: revamp carl9170_tx_prepare
authorChristian Lamparter <chunkeey@googlemail.com>
Sun, 26 Sep 2010 23:36:38 +0000 (01:36 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 28 Sep 2010 19:47:56 +0000 (15:47 -0400)
commit4bd437ea40b81fb4c047034de6dca1b5af496fb0
tree3d002763f892f45437f63d89f93a6b48e2b8d689
parent9c655c8be9053a65886ac3e06420399a9bfdbd70
carl9170: revamp carl9170_tx_prepare

David Miller complained about the driver's excessive use
of variables in __packed structs. While I did not fully
agree with his sole "performance" argument on all accounts.
I do see some room for improvement in hot-paths on
architectures without an efficient access to unaligned
elements.

This first patch (dare I say?) optimizes an important tx
hot-path in the driver: carl9170_tx_prepare.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/carl9170/tx.c