Skip to content
Snippets Groups Projects
Commit 049b5e2a authored by Thomas Avery's avatar Thomas Avery Committed by Greg Kroah-Hartman
Browse files

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: default avatarThomas Avery <tavery321@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c22da34a
No related branches found
No related tags found
No related merge requests found
......@@ -701,7 +701,7 @@ void LPS_Leave_check(
bReady = false;
start_time = jiffies;
yield();
cond_resched();
while (1) {
down(&pwrpriv->lock);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment