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>
This commit is contained in:
Thomas Avery 2018-03-28 18:26:34 -04:00 committed by Greg Kroah-Hartman
parent c22da34a1b
commit 049b5e2ae3
1 changed files with 1 additions and 1 deletions

View File

@ -701,7 +701,7 @@ void LPS_Leave_check(
bReady = false;
start_time = jiffies;
yield();
cond_resched();
while (1) {
down(&pwrpriv->lock);