Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c22da34a authored by Thomas Avery's avatar Thomas Avery Committed by Greg Kroah-Hartman
Browse files

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: default avatarThomas Avery <tavery321@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8040b57a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);