diff options
author | Thomas Avery <tavery321@gmail.com> | 2018-03-29 00:26:34 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-03-29 12:00:15 +0200 |
commit | 049b5e2ae30b3c2f870cc9550af6f9a947fbd5b5 (patch) | |
tree | 8cb99d204e370309715a1222ef6aada081ef3842 /drivers | |
parent | staging: rtl8723bs: Replace yield() call with cond_resched() (diff) | |
download | linux-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.c | 2 |
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); |