diff options
author | Larry Finger <Larry.Finger@lwfinger.net> | 2010-12-16 18:13:57 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-12-16 21:22:32 +0100 |
commit | 8a09d6d80c90c02f2f8c89f69c702cab0c8d9b42 (patch) | |
tree | 09c1439790d4eaa463a265aabee89845013d31f0 /drivers/net/wireless/rtlwifi/ps.c | |
parent | rtl8192ce: Update MAINTAINERS (diff) | |
download | linux-8a09d6d80c90c02f2f8c89f69c702cab0c8d9b42.tar.xz linux-8a09d6d80c90c02f2f8c89f69c702cab0c8d9b42.zip |
rtlwifi: Switch locking from semaphores to mutexes
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/rtlwifi/ps.c b/drivers/net/wireless/rtlwifi/ps.c index fd77cd508f50..22c293e5b88c 100644 --- a/drivers/net/wireless/rtlwifi/ps.c +++ b/drivers/net/wireless/rtlwifi/ps.c @@ -287,7 +287,7 @@ void rtl_ips_nic_on(struct ieee80211_hw *hw) struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); enum rf_pwrstate rtstate; - down(&rtlpriv->locks.ips_sem); + mutex_lock(&rtlpriv->locks.ips_mutex); if (ppsc->b_inactiveps) { rtstate = ppsc->rfpwr_state; @@ -303,7 +303,7 @@ void rtl_ips_nic_on(struct ieee80211_hw *hw) } } - up(&rtlpriv->locks.ips_sem); + mutex_unlock(&rtlpriv->locks.ips_mutex); } /*for FW LPS*/ |