From: Arik Nemtsov Date: Sun, 29 Jul 2012 09:18:32 +0000 (+0300) Subject: wlcore: tx_flush - optimize flow and force Tx during the flush X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~47^2~30^2~38^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f83e54134a6d38437ddee0fda96692a6b0c33b0e;p=pandora-kernel.git wlcore: tx_flush - optimize flow and force Tx during the flush Force Tx during the flush if there are packets pending in the driver. This actually solves a bug where we would get called from the mac80211 wq context, which would prevent tx_work from getting queued, even when the mutex is unlocked. Don't stop the queues needlessly if there's nothing to flush. Use a larger delay when sleeping to give the driver a chance to flush and avoid cpu busy looping. Re-arrange the loop so the last iteration is not wasted. Signed-off-by: Arik Nemtsov Signed-off-by: Luciano Coelho --- Reading git-diff-tree failed