瀏覽代碼

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 <tavery321@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Thomas Avery 7 年之前
父節點
當前提交
049b5e2ae3
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/staging/rtl8723bs/core/rtw_pwrctrl.c

+ 1 - 1
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);