summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorGuilherme Ivo Bozi <guilherme.bozi@usp.br>2026-05-12 21:31:51 -0300
committerJonathan Cameron <jic23@kernel.org>2026-05-31 10:59:41 +0100
commitf3c1ef2bca5c128b62b5b804a50ad3f6f64a3098 (patch)
treec8fc4de80cce413a005c61b8b3c17fa97f0bea0f /tools/perf/scripts/python/stackcollapse.py
parent947eb6f0a274f8b15a0248051a65b069effd5057 (diff)
iio: adc: xilinx-ams: use guard(mutex) for automatic locking
Replace open-coded mutex_lock()/mutex_unlock() pairs with guard(mutex) to simplify locking and ensure proper unlock on all control flow paths. This removes explicit unlock handling, reduces boilerplate, and avoids potential mistakes in error paths while keeping the behavior unchanged. Signed-off-by: Guilherme Ivo Bozi <guilherme.bozi@usp.br> Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com> Reviewed-by: Salih Erim <salih.erim@amd.com> Tested-by: Salih Erim <salih.erim@amd.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions