aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorSenthil Balasubramanian <senthilkumar@atheros.com>2010-12-23 10:36:57 -0500
committerJohn W. Linville <linville@tuxdriver.com>2011-01-04 14:35:11 -0500
commit52671e43dbfb0e0dfa5fab604cb3984bd1d777a6 (patch)
treeb08043cd80ff739e2aea2861fd184e1f17421894 /drivers/net/wireless
parentcd017f25e391dfabaca185bb4a5aefd02fd6c0ca (diff)
ath9k: spin_lock_bh is not required within tasklet context.
Disabling BH is not required while running from a tasklet context and so replace spin_lock_bh with just spin_lock. Signed-off-by: Senthil Balasubramanian <senthilkumar@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/ath/ath9k/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c
index c5cf8639e721..0f1b62456141 100644
--- a/drivers/net/wireless/ath/ath9k/main.c
+++ b/drivers/net/wireless/ath/ath9k/main.c
@@ -599,7 +599,7 @@ void ath9k_tasklet(unsigned long data)
599 return; 599 return;
600 } 600 }
601 601
602 spin_lock_bh(&sc->sc_pcu_lock); 602 spin_lock(&sc->sc_pcu_lock);
603 603
604 if (!ath9k_hw_check_alive(ah)) 604 if (!ath9k_hw_check_alive(ah))
605 ieee80211_queue_work(sc->hw, &sc->hw_check_work); 605 ieee80211_queue_work(sc->hw, &sc->hw_check_work);
@@ -643,7 +643,7 @@ void ath9k_tasklet(unsigned long data)
643 /* re-enable hardware interrupt */ 643 /* re-enable hardware interrupt */
644 ath9k_hw_enable_interrupts(ah); 644 ath9k_hw_enable_interrupts(ah);
645 645
646 spin_unlock_bh(&sc->sc_pcu_lock); 646 spin_unlock(&sc->sc_pcu_lock);
647 ath9k_ps_restore(sc); 647 ath9k_ps_restore(sc);
648} 648}
649 649