mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 16:29:59 +00:00
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:
parent
c22da34a1b
commit
049b5e2ae3
1 changed files with 1 additions and 1 deletions
|
@ -701,7 +701,7 @@ void LPS_Leave_check(
|
||||||
bReady = false;
|
bReady = false;
|
||||||
start_time = jiffies;
|
start_time = jiffies;
|
||||||
|
|
||||||
yield();
|
cond_resched();
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
down(&pwrpriv->lock);
|
down(&pwrpriv->lock);
|
||||||
|
|
Loading…
Reference in a new issue