diff options
| author | 2016-06-06 10:08:06 +0530 | |
|---|---|---|
| committer | 2016-08-21 18:14:51 +0200 | |
| commit | f18c566e4e1b9c95367d4f997c3c2d51a3559395 (patch) | |
| tree | 4b06b5d270f85272233e6a8c6ce083f8f641152a /include/linux | |
| parent | rtl8188eu: Replace semaphore terminate_cmdthread_sema with completion (diff) | |
rtl8188eu: pwrctrl_priv: Replace semaphore 'lock' with mutex
The semaphore 'lock' in pwrctrl_priv is a simple mutex, so it should
be written as one. Semaphores are going away in the future.
_enter_pwrlock was using down_interruptible(), so the lock could be broken
by sending a signal. This could be a bug, because nothing checks the return
code here. Hence, using mutex_lock instead of the interruptible version.
Also, remove the now unused wrappers _init_pwrlock, _enter_pwrlock,
_exit_pwrlock and _rtw_down_sema.
Signed-off-by: Binoy Jayan <binoy.jayan@linaro.org>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
