]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: optimize the usage of power save wrappers.
authorSenthil Balasubramanian <senthilkumar@atheros.com>
Fri, 22 Apr 2011 06:02:10 +0000 (11:32 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 25 Apr 2011 18:50:18 +0000 (14:50 -0400)
commit65c0ccfba8646af81e3b1edf271e8dcc674e74b1
treeb360ef1a4734ae2b1760b15de62ea7c288db541a
parentf77e55cd0ef2b1f6edd3a87f1edee81fae300e30
ath9k: optimize the usage of power save wrappers.

We need not wake up the chip even before mutex lock is acquired and also
that it is required only if we are going to drain the txq. So place the
wrappers accordingly and this change is also useful when there are no
pending frames in the txq as we do not wake up the chip unnecessarily.

Signed-off-by: Senthil Balasubramanian <senthilkumar@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/main.c