aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorBinoy Jayan <[email protected]>2016-06-06 10:08:06 +0530
committerGreg Kroah-Hartman <[email protected]>2016-08-21 18:14:51 +0200
commitf18c566e4e1b9c95367d4f997c3c2d51a3559395 (patch)
tree4b06b5d270f85272233e6a8c6ce083f8f641152a /tools/perf/scripts/python
parent16677cca770d659434aaa860f12d418b68adac31 (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 <[email protected]> Reviewed-by: Arnd Bergmann <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions