aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>2025-04-23 10:55:40 +0200
committerJiri Kosina <jkosina@suse.com>2025-04-24 12:07:55 +0200
commit837b05fea0752ee900abe57253d9f79ca46dd227 (patch)
tree66168a6bc2174118164d1fc6611d5a91625d5a85 /tools/perf/scripts/python/export-to-postgresql.py
parentHID: cp2112: destroy mutex on driver detach (diff)
downloadlinux-rng-837b05fea0752ee900abe57253d9f79ca46dd227.tar.xz
linux-rng-837b05fea0752ee900abe57253d9f79ca46dd227.zip
HID: cp2112: hold the lock for the entire direction_output() call
We currently take the lock, set direction to output, release it, reacquire it and set the desired value. That doesn't look correct. Introduce a helper function that sets the value without taking the lock and use it where applicable in order to combine the critical sections. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions