Skip to contentSkip to conversation

staging: rtl8723bs: Remove yield call, replace with cond_resched()

PATCH New Thomas Avery 1 participant 1 message Mar 28, 2018 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 staging: rtl8723bs: Remove yield call, replace with cond_resched()

Remove yield() call. Yield does not guarantee progress, cond_resched() is a safer alternative

---
 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/rtl8723bs/core/rtw_pwrctrl.c +1 -1
index 4a6af72013fa..85f7769ecc2d 100644
@@ -701,7 +701,7 @@ void LPS_Leave_check(
 	bReady = false;
 	start_time = jiffies;
 
-	yield();
+	cond_resched();
 
 	while (1) {
 		down(&pwrpriv->lock);
Signature · 6 lines
2.11.0

_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel