aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
diff options
context:
space:
mode:
authorArd Biesheuvel <[email protected]>2016-07-15 21:36:31 +0200
committerMatt Fleming <[email protected]>2016-09-09 16:08:43 +0100
commitdce48e351c0d42014e5fb16ac3eb099e11b7e716 (patch)
tree97ec1bf70a8269d40598b5d1ed12f60d51ec18b4 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
parent21b3ddd39feecd2f4d6c52bcd30f0a4fa14f125a (diff)
efi: Replace runtime services spinlock with semaphore
The purpose of the efi_runtime_lock is to prevent concurrent calls into the firmware. There is no need to use spinlocks here, as long as we ensure that runtime service invocations from an atomic context (i.e., EFI pstore) cannot block. So use a semaphore instead, and use down_trylock() in the nonblocking case. We don't use a mutex here because the mutex_trylock() function must not be called from interrupt context, whereas the down_trylock() can. Signed-off-by: Ard Biesheuvel <[email protected]> Cc: Leif Lindholm <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Sylvain Chouleur <[email protected]> Signed-off-by: Matt Fleming <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions