提交 049b5e2a 编写于 作者: T Thomas Avery 提交者: Greg Kroah-Hartman

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: NThomas Avery <tavery321@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 c22da34a
......@@ -701,7 +701,7 @@ void LPS_Leave_check(
bReady = false;
start_time = jiffies;
yield();
cond_resched();
while (1) {
down(&pwrpriv->lock);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册