aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/bin/task-analyzer-record
diff options
context:
space:
mode:
authorJonathan Cameron <Jonathan.Cameron@huawei.com>2024-01-28 15:05:29 +0000
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2024-02-17 16:16:10 +0000
commit366328e5ac47a763d77b9dd85172d3eb3735568e (patch)
tree89eb695db43c598e3cf10aaacfc2da95b6a5063a /tools/perf/scripts/python/bin/task-analyzer-record
parentiio: locking: introduce __cleanup() based direct mode claiming infrastructure (diff)
downloadlinux-366328e5ac47a763d77b9dd85172d3eb3735568e.tar.gz
linux-366328e5ac47a763d77b9dd85172d3eb3735568e.zip
iio: dummy: Use automatic lock and direct mode cleanup.
Given we now have iio_device_claim_direct_scoped() to perform automatic releasing of direct mode at exit from the scope that follows it, this can be used in conjunction with guard(mutex) etc remove a lot of special case handling. Note that in this particular example code, there is no real reason you can't read channels via sysfs at the same time as filling the software buffer. To make it look more like a real driver constrain raw and processed channel reads from occurring whilst the buffer is in use. Reviewed-by: David Lechner <dlechner@baylibre.com> Reviewed-by: Nuno Sa <nuno.a@analog.com> Link: https://lore.kernel.org/r/20240128150537.44592-3-jic23@kernel.org Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/task-analyzer-record')
0 files changed, 0 insertions, 0 deletions