mirror of
https://github.com/torvalds/linux.git
synced 2024-12-23 03:11:46 +00:00
staging: rtl8723bs: Replace yield() call with cond_resched()
Remove yield call(). yield does not guarantee progress, and should not be used. cond_resched() is a safe alternative. Signed-off-by: Thomas Avery <tavery321@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
8040b57ad8
commit
c22da34a1b
@ -4263,7 +4263,7 @@ unsigned int send_beacon(struct adapter *padapter)
|
||||
issue_beacon(padapter, 100);
|
||||
issue++;
|
||||
do {
|
||||
yield();
|
||||
cond_resched();
|
||||
rtw_hal_get_hwreg(padapter, HW_VAR_BCN_VALID, (u8 *)(&bxmitok));
|
||||
poll++;
|
||||
} while ((poll%10) != 0 && false == bxmitok && !padapter->bSurpriseRemoved && !padapter->bDriverStopped);
|
||||
|
Loading…
Reference in New Issue
Block a user