aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorVasileios Amoiridis <[email protected]>2024-06-10 01:38:12 +0200
committerJonathan Cameron <[email protected]>2024-08-03 10:13:34 +0100
commit77641e5a477d428335cd094b88ac54e09ccb70f4 (patch)
tree63edacbeb54bd2aecf8877b334cd1f996c1d19ae /tools/perf/scripts/python/task-analyzer.py
parent7d34b4ad8cd2867b130b5b8d7d76d0d6092bd019 (diff)
iio: chemical: bme680: Fix read/write ops to device by adding mutexes
Add mutexes in the {read/write}_raw() functions of the device to guard the read/write of data from/to the device. This is necessary because for any operation other than temperature, multiple reads need to take place from the device. Even though regmap has a locking by itself, it won't protect us from multiple applications trying to read at the same time temperature and pressure since the pressure reading includes an internal temperature reading and there is nothing to ensure that this temperature+pressure reading will happen sequentially without any other operation interfering in the meantime. Fixes: 1b3bd8592780 ("iio: chemical: Add support for Bosch BME680 sensor") Signed-off-by: Vasileios Amoiridis <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions