mirror of
https://github.com/Mange/rtl8192eu-linux-driver
synced 2026-04-01 07:00:01 +00:00
Remove wrapper routine rtw_msleep_os()
The effect of this macro is to call msleep(). Remove the wrapper. Link: https://lore.kernel.org/r/20210805192644.15978-2-Larry.Finger@lwfinger.net
This commit is contained in:
committed by
Carlos Garcés
parent
1fcfef2e07
commit
fdbea81f08
@@ -540,7 +540,7 @@ u8 rtw_cpwm_polling(_adapter *adapter, u8 rpwm, u8 cpwm_orig)
|
||||
do {
|
||||
start_time = rtw_get_current_time();
|
||||
do {
|
||||
rtw_msleep_os(1);
|
||||
msleep(1);
|
||||
rtw_hal_get_hwreg(adapter, HW_VAR_CPWM, &cpwm_now);
|
||||
|
||||
if ((cpwm_orig ^ cpwm_now) & 0x80) {
|
||||
@@ -1458,7 +1458,7 @@ void LPS_Leave_check(
|
||||
RTW_ERR("Wait for cpwm event than 100 ms!!!\n");
|
||||
break;
|
||||
}
|
||||
rtw_msleep_os(1);
|
||||
msleep(1);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -2512,7 +2512,7 @@ int _rtw_pwr_wakeup(_adapter *padapter, u32 ips_deffer_ms, const char *caller)
|
||||
if (pwrpriv->ps_processing) {
|
||||
RTW_INFO("%s wait ps_processing...\n", __func__);
|
||||
while (pwrpriv->ps_processing && rtw_get_passing_time_ms(start) <= 3000)
|
||||
rtw_msleep_os(10);
|
||||
msleep(10);
|
||||
if (pwrpriv->ps_processing)
|
||||
RTW_INFO("%s wait ps_processing timeout\n", __func__);
|
||||
else
|
||||
@@ -2523,7 +2523,7 @@ int _rtw_pwr_wakeup(_adapter *padapter, u32 ips_deffer_ms, const char *caller)
|
||||
if (rtw_hal_sreset_inprogress(padapter)) {
|
||||
RTW_INFO("%s wait sreset_inprogress...\n", __func__);
|
||||
while (rtw_hal_sreset_inprogress(padapter) && rtw_get_passing_time_ms(start) <= 4000)
|
||||
rtw_msleep_os(10);
|
||||
msleep(10);
|
||||
if (rtw_hal_sreset_inprogress(padapter))
|
||||
RTW_INFO("%s wait sreset_inprogress timeout\n", __func__);
|
||||
else
|
||||
@@ -2541,7 +2541,7 @@ int _rtw_pwr_wakeup(_adapter *padapter, u32 ips_deffer_ms, const char *caller)
|
||||
&& ((rtw_get_passing_time_ms(start) <= 3000 && !rtw_is_do_late_resume(pwrpriv))
|
||||
|| (rtw_get_passing_time_ms(start) <= 500 && rtw_is_do_late_resume(pwrpriv)))
|
||||
)
|
||||
rtw_msleep_os(10);
|
||||
msleep(10);
|
||||
if (pwrpriv->bInSuspend)
|
||||
RTW_INFO("%s wait bInSuspend timeout\n", __func__);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user