summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorThomas Avery <tavery321@gmail.com>2018-03-29 00:26:34 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-03-29 12:00:15 +0200
commit049b5e2ae30b3c2f870cc9550af6f9a947fbd5b5 (patch)
tree8cb99d204e370309715a1222ef6aada081ef3842 /drivers
parentstaging: rtl8723bs: Replace yield() call with cond_resched() (diff)
downloadlinux-049b5e2ae30b3c2f870cc9550af6f9a947fbd5b5.tar.xz
linux-049b5e2ae30b3c2f870cc9550af6f9a947fbd5b5.zip
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/rtl8723bs/core/rtw_pwrctrl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c b/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c
index 4a6af72013fa..85f7769ecc2d 100644
--- a/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c
+++ b/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c
@@ -701,7 +701,7 @@ void LPS_Leave_check(
bReady = false;
start_time = jiffies;
- yield();
+ cond_resched();
while (1) {
down(&pwrpriv->lock);