Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -701,7 +701,7 @@ void LPS_Leave_check(
	bReady = false;
	start_time = jiffies;

	yield();
	cond_resched();

	while (1) {
		down(&pwrpriv->lock);