Skip to content

Commit 049b5e2

Browse files
tavery321gregkh
authored andcommitted
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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent c22da34 commit 049b5e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/staging/rtl8723bs/core/rtw_pwrctrl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ void LPS_Leave_check(
701701
bReady = false;
702702
start_time = jiffies;
703703

704-
yield();
704+
cond_resched();
705705

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

0 commit comments

Comments
 (0)