mirror of
https://github.com/Mange/rtl8192eu-linux-driver
synced 2024-11-22 13:35:00 +00:00
Remove rtw_yield_os()
This wrapper is just a call to yield(). Link: https://lore.kernel.org/r/20210805192644.15978-1-Larry.Finger@lwfinger.net
This commit is contained in:
parent
f1aa80a838
commit
1fcfef2e07
@ -10838,7 +10838,7 @@ unsigned int send_beacon(_adapter *padapter)
|
|||||||
#if defined(CONFIG_PCI_BCN_POLLING)
|
#if defined(CONFIG_PCI_BCN_POLLING)
|
||||||
rtw_msleep_os(1);
|
rtw_msleep_os(1);
|
||||||
#else
|
#else
|
||||||
rtw_yield_os();
|
yield();
|
||||||
#endif
|
#endif
|
||||||
rtw_hal_get_hwreg(padapter, HW_VAR_BCN_VALID, (u8 *)(&bxmitok));
|
rtw_hal_get_hwreg(padapter, HW_VAR_BCN_VALID, (u8 *)(&bxmitok));
|
||||||
poll++;
|
poll++;
|
||||||
|
@ -1435,7 +1435,7 @@ void LPS_Leave_check(
|
|||||||
bReady = _FALSE;
|
bReady = _FALSE;
|
||||||
start_time = rtw_get_current_time();
|
start_time = rtw_get_current_time();
|
||||||
|
|
||||||
rtw_yield_os();
|
yield();
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
_enter_pwrlock(&pwrpriv->lock);
|
_enter_pwrlock(&pwrpriv->lock);
|
||||||
|
@ -353,7 +353,7 @@ void rtl8192e_download_rsvd_page(PADAPTER padapter, u8 mstatus)
|
|||||||
rtw_hal_set_fw_rsvd_page(padapter, _FALSE);
|
rtw_hal_set_fw_rsvd_page(padapter, _FALSE);
|
||||||
DLBcnCount++;
|
DLBcnCount++;
|
||||||
do {
|
do {
|
||||||
rtw_yield_os();
|
yield();
|
||||||
/* rtw_mdelay_os(10); */
|
/* rtw_mdelay_os(10); */
|
||||||
/* check rsvd page download OK. */
|
/* check rsvd page download OK. */
|
||||||
rtw_hal_get_hwreg(padapter, HW_VAR_BCN_VALID, (u8 *)(&bcn_valid));
|
rtw_hal_get_hwreg(padapter, HW_VAR_BCN_VALID, (u8 *)(&bcn_valid));
|
||||||
|
@ -395,7 +395,7 @@ static s32 polling_fwdl_chksum(_adapter *adapter, u32 min_cnt, u32 timeout_ms)
|
|||||||
value32 = rtw_read32(adapter, REG_MCUFWDL);
|
value32 = rtw_read32(adapter, REG_MCUFWDL);
|
||||||
if (value32 & FWDL_ChkSum_rpt || RTW_CANNOT_IO(adapter))
|
if (value32 & FWDL_ChkSum_rpt || RTW_CANNOT_IO(adapter))
|
||||||
break;
|
break;
|
||||||
rtw_yield_os();
|
yield();
|
||||||
} while (rtw_get_passing_time_ms(start) < timeout_ms || cnt < min_cnt);
|
} while (rtw_get_passing_time_ms(start) < timeout_ms || cnt < min_cnt);
|
||||||
|
|
||||||
if (!(value32 & FWDL_ChkSum_rpt))
|
if (!(value32 & FWDL_ChkSum_rpt))
|
||||||
@ -433,7 +433,7 @@ static s32 _FWFreeToGo8192E(_adapter *adapter, u32 min_cnt, u32 timeout_ms)
|
|||||||
value32 = rtw_read32(adapter, REG_MCUFWDL);
|
value32 = rtw_read32(adapter, REG_MCUFWDL);
|
||||||
if (value32 & WINTINI_RDY || RTW_CANNOT_IO(adapter))
|
if (value32 & WINTINI_RDY || RTW_CANNOT_IO(adapter))
|
||||||
break;
|
break;
|
||||||
rtw_yield_os();
|
yield();
|
||||||
} while (rtw_get_passing_time_ms(start) < timeout_ms || cnt < min_cnt);
|
} while (rtw_get_passing_time_ms(start) < timeout_ms || cnt < min_cnt);
|
||||||
|
|
||||||
if (!(value32 & WINTINI_RDY))
|
if (!(value32 & WINTINI_RDY))
|
||||||
|
@ -379,9 +379,6 @@ extern void rtw_mdelay_os(int ms);
|
|||||||
extern void rtw_udelay_os(int us);
|
extern void rtw_udelay_os(int us);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern void rtw_yield_os(void);
|
|
||||||
|
|
||||||
|
|
||||||
extern void rtw_init_timer(_timer *ptimer, void *padapter, void *pfunc, void *ctx);
|
extern void rtw_init_timer(_timer *ptimer, void *padapter, void *pfunc, void *ctx);
|
||||||
|
|
||||||
|
|
||||||
|
@ -1748,19 +1748,6 @@ void rtw_udelay_os(int us)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void rtw_yield_os(void)
|
|
||||||
{
|
|
||||||
#ifdef PLATFORM_LINUX
|
|
||||||
yield();
|
|
||||||
#endif
|
|
||||||
#ifdef PLATFORM_FREEBSD
|
|
||||||
yield();
|
|
||||||
#endif
|
|
||||||
#ifdef PLATFORM_WINDOWS
|
|
||||||
SwitchToThread();
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
bool rtw_macaddr_is_larger(const u8 *a, const u8 *b)
|
bool rtw_macaddr_is_larger(const u8 *a, const u8 *b)
|
||||||
{
|
{
|
||||||
u32 va, vb;
|
u32 va, vb;
|
||||||
|
Loading…
Reference in New Issue
Block a user