ath9k: optimize ath9k_flush
authorFelix Fietkau <nbd@openwrt.org>
Mon, 11 Nov 2013 21:23:35 +0000 (22:23 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 2 Dec 2013 19:25:00 +0000 (14:25 -0500)
commit10e2318103f5941aa70c318afe34bc41f1b98529
tree0b82dc104bf3de3801d9725216eeeee4ef235b24
parent10ffb6a77e617a8f5ded84b504550759ec4a8df0
ath9k: optimize ath9k_flush

Instead of checking the queues in a loop with hardcoded sleep times
inbetween, use a wait queue to trigger queue checks after the tx
processing tasklet has run.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ath9k.h
drivers/net/wireless/ath/ath9k/init.c
drivers/net/wireless/ath/ath9k/main.c