aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
diff options
context:
space:
mode:
authorWilliam Breathitt Gray <[email protected]>2023-04-06 10:40:11 -0400
committerJonathan Cameron <[email protected]>2023-04-10 12:26:33 +0100
commit4f9b80aefb9e2f542a49d9ec087cf5919730e1dd (patch)
tree0aec9dc276c3bad1604534542e4c4797dff91d07 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
parent9740827468cea80c42db29e7171a50e99acf7328 (diff)
iio: addac: stx104: Fix race condition when converting analog-to-digital
The ADC conversion procedure requires several device I/O operations performed in a particular sequence. If stx104_read_raw() is called concurrently, the ADC conversion procedure could be clobbered. Prevent such a race condition by utilizing a mutex. Fixes: 4075a283ae83 ("iio: stx104: Add IIO support for the ADC channels") Signed-off-by: William Breathitt Gray <[email protected]> Link: https://lore.kernel.org/r/2ae5e40eed5006ca735e4c12181a9ff5ced65547.1680790580.git.william.gray@linaro.org Cc: <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions