]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5d02b3ab945db2d019f6b0754cc894f883e3fd73
tree3d002763f892f45437f63d89f93a6b48e2b8d689
parentb6130671304acf9311645718a0b440f367a052ac
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