aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorBinoy Jayan <[email protected]>2016-08-22 10:09:42 +0530
committerGreg Kroah-Hartman <[email protected]>2016-09-01 17:44:01 +0200
commit5c2ba8b85e350678b96db57cc8972deb9e47c497 (patch)
tree053419b13cedc5b4c9883c34375eceea59864d17 /tools/perf/scripts/python/event_analyzing_sample.py
parentb2bcdadcf926c6048553530b00826018c2f39481 (diff)
rtl8712: pwrctrl_priv: Replace semaphore lock with mutex
The semaphore 'lock' in 'pwrctrl_priv' is used as 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. Removing the now unused _enter_pwrlock and _down_sema. Signed-off-by: Binoy Jayan <[email protected]> Reviewed-by: Arnd Bergmann <[email protected]> Tested-by: Larry Finger <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions