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:
Larry Finger 2021-08-05 14:26:39 -05:00 committed by Carlos Garcés
parent f1aa80a838
commit 1fcfef2e07
6 changed files with 5 additions and 21 deletions

View File

@ -10838,7 +10838,7 @@ unsigned int send_beacon(_adapter *padapter)
#if defined(CONFIG_PCI_BCN_POLLING)
rtw_msleep_os(1);
#else
rtw_yield_os();
yield();
#endif
rtw_hal_get_hwreg(padapter, HW_VAR_BCN_VALID, (u8 *)(&bxmitok));
poll++;

View File

@ -1435,7 +1435,7 @@ void LPS_Leave_check(
bReady = _FALSE;
start_time = rtw_get_current_time();
rtw_yield_os();
yield();
while (1) {
_enter_pwrlock(&pwrpriv->lock);

View File

@ -353,7 +353,7 @@ void rtl8192e_download_rsvd_page(PADAPTER padapter, u8 mstatus)
rtw_hal_set_fw_rsvd_page(padapter, _FALSE);
DLBcnCount++;
do {
rtw_yield_os();
yield();
/* rtw_mdelay_os(10); */
/* check rsvd page download OK. */
rtw_hal_get_hwreg(padapter, HW_VAR_BCN_VALID, (u8 *)(&bcn_valid));

View File

@ -395,7 +395,7 @@ static s32 polling_fwdl_chksum(_adapter *adapter, u32 min_cnt, u32 timeout_ms)
value32 = rtw_read32(adapter, REG_MCUFWDL);
if (value32 & FWDL_ChkSum_rpt || RTW_CANNOT_IO(adapter))
break;
rtw_yield_os();
yield();
} while (rtw_get_passing_time_ms(start) < timeout_ms || cnt < min_cnt);
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);
if (value32 & WINTINI_RDY || RTW_CANNOT_IO(adapter))
break;
rtw_yield_os();
yield();
} while (rtw_get_passing_time_ms(start) < timeout_ms || cnt < min_cnt);
if (!(value32 & WINTINI_RDY))

View File

@ -379,9 +379,6 @@ extern void rtw_mdelay_os(int ms);
extern void rtw_udelay_os(int us);
#endif
extern void rtw_yield_os(void);
extern void rtw_init_timer(_timer *ptimer, void *padapter, void *pfunc, void *ctx);

View File

@ -1748,19 +1748,6 @@ void rtw_udelay_os(int us)
}
#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)
{
u32 va, vb;