mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-03-21 06:24:12 +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…
Add table
Reference in a new issue