diff options
author | Miquel Raynal <miquel.raynal@bootlin.com> | 2022-02-07 15:38:33 +0100 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2022-04-10 16:21:45 +0100 |
commit | 474010127e2505fc463236470908e1ff5ddb3578 (patch) | |
tree | c5c04d1538b6f04dec668068108da746085c50fb /include/drm | |
parent | 05a32f1aeb05c41dd33d95c060ee5d1b81f70e55 (diff) |
iio: st_sensors: Add a local lock for protecting odr
Right now the (framework) mlock lock is (ab)used for multiple purposes:
1- protecting concurrent accesses over the odr local cache
2- avoid changing samplig frequency whilst buffer is running
Let's start by handling situation #1 with a local lock.
Suggested-by: Jonathan Cameron <jic23@kernel.org>
Cc: Denis Ciocca <denis.ciocca@st.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/r/20220207143840.707510-7-miquel.raynal@bootlin.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'include/drm')
0 files changed, 0 insertions, 0 deletions