aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorFabio M. De Francesco <[email protected]>2021-08-28 13:36:56 +0200
committerGreg Kroah-Hartman <[email protected]>2021-09-13 08:49:49 +0200
commitd3ede18eeb4645c49c2de6eaad2439626407dd86 (patch)
tree349155a3d2fabb9e51f101fd14959f3f71465ef9 /tools/perf/scripts/python/event_analyzing_sample.py
parentf75a4eec49efcae5cb624462bcb5051c762a871d (diff)
staging: r8188eu: Remove _enter/_exit_critical_mutex()
Remove _enter_critical_mutex() and _exit_critical_mutex(). They are unnecessary wrappers, respectively to mutex_lock_interruptible() and to mutex_unlock(). They also have an odd interface that takes an unused argument named pirqL of type unsigned long. The original code enters the critical section if the mutex API is interrupted while waiting to acquire the lock; therefore it could lead to a race condition. Use mutex_lock() because it is uninterruptible and so avoid that above-mentioned potential race condition. Tested-by: Pavel Skripkin <[email protected]> Reviewed-by: Pavel Skripkin <[email protected]> Signed-off-by: Fabio M. De Francesco <[email protected]> Link: https://lore.kernel.org/r/[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