summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorRupesh Majhi <zoone.rupert@gmail.com>2026-09-21 21:31:26 +0300
committerJonathan Cameron <jonathan.cameron@oss.qualcomm.com>2026-09-28 17:07:37 +0100
commitf8031c14f468c911937399d0cc48fa7cd2c74a20 (patch)
treeaa229333c99013abf5603ba2050ab10682512fca /tools/perf/scripts/python/stackcollapse.py
parentf50da812fc531561f2fba167bb770a2262f4c4d9 (diff)
downloadlinux-next-f8031c14f468c911937399d0cc48fa7cd2c74a20.tar.gz
linux-next-f8031c14f468c911937399d0cc48fa7cd2c74a20.zip
iio: pressure: dps310: take the lock once per raw read
A processed pressure read takes the lock twice: once in the raw read, then again when dps310_calculate_pressure() trylocks to refresh the temperature. The refresh is skipped whenever the lock is busy. Split the raw reads into variants that expect the lock held and give each channel a helper that takes it once for the whole sequence, so the temperature refresh is unconditional. Buffered capture later in this series needs the same shape. Mark the functions that need the lock with __must_hold() rather than a comment, and include cleanup.h, which ACQUIRE() needs and was coming in transitively. Assisted-by: LLM Signed-off-by: Rupesh Majhi <zoone.rupert@gmail.com> Signed-off-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions