summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rtlwifi/ps.c
diff options
context:
space:
mode:
authorMike McCormack <mikem@ring3k.org>2011-05-31 01:49:23 +0200
committerJohn W. Linville <linville@tuxdriver.com>2011-06-03 20:57:33 +0200
commit67fc6052a49b781efbcfc138f3b68fe79ddd0c2f (patch)
treef4d4b5a1ac2dc2c304c2e87bca6917f6bdb08f1d /drivers/net/wireless/rtlwifi/ps.c
parentrtlwifi: Store loop index in local variable (diff)
downloadlinux-67fc6052a49b781efbcfc138f3b68fe79ddd0c2f.tar.xz
linux-67fc6052a49b781efbcfc138f3b68fe79ddd0c2f.zip
rtlwifi: Run IPS leave work in a tasklet
This removes the need to use IRQ safe spinlocks in many places. Signed-off-by: Mike McCormack <mikem@ring3k.org> Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rtlwifi/ps.c')
-rw-r--r--drivers/net/wireless/rtlwifi/ps.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/rtlwifi/ps.c b/drivers/net/wireless/rtlwifi/ps.c
index a73ffbe68ba4..fd3b04f0843f 100644
--- a/drivers/net/wireless/rtlwifi/ps.c
+++ b/drivers/net/wireless/rtlwifi/ps.c
@@ -68,6 +68,7 @@ bool rtl_ps_disable_nic(struct ieee80211_hw *hw)
/*<2> Disable Interrupt */
rtlpriv->cfg->ops->disable_interrupt(hw);
+ tasklet_kill(&rtlpriv->works.irq_tasklet);
/*<3> Disable Adapter */
rtlpriv->cfg->ops->hw_disable(hw);