staging: rtl8723bs: Replace yield() call with cond_resched()
Subsystems (2)
PATCH 1/1 staging: rtl8723bs: Replace yield() call with cond_resched()
Remove yield() call. yield() does not guarantee progress, and should not be used. cond_resched or wait_event are a safe alternative.
Signed-off-by Thomas Avery <[email protected]>
--- drivers/staging/rtl8723bs/core/rtw_pwrctrl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/rtl8723bs/core/rtw_pwrctrl.c +1 -1
@@ -701,7 +701,7 @@ void LPS_Leave_check( bReady = false; start_time = jiffies; -yield (); +cond_resched ();while (1 ) {down (&pwrpriv->lock);
Signature · 1 line
2.11.0