From: Thomas Avery Date: Wed, 28 Mar 2018 22:26:34 +0000 (-0400) Subject: staging: rtl8723bs: Remove yield call, replace with cond_resched() X-Git-Tag: v4.17-rc1~124^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=049b5e2ae30b3c2f870cc9550af6f9a947fbd5b5;p=thirdparty%2Flinux.git staging: rtl8723bs: Remove yield call, replace with cond_resched() Remove yield() call. Yield does not guarantee progress, cond_resched() is a safer alternative Signed-off-by: Thomas Avery Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c b/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c index 4a6af72013faa..85f7769ecc2df 100644 --- a/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c +++ b/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c @@ -701,7 +701,7 @@ void LPS_Leave_check( bReady = false; start_time = jiffies; - yield(); + cond_resched(); while (1) { down(&pwrpriv->lock);