aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>2024-01-23 14:26:09 +0100
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>2024-02-12 10:50:49 +0100
commit2559f2e09211dd4a5fde5bc5749ef4714fe38f7f (patch)
treeb07eed30136fa34cf596e9c5783c0ecaeb83d78b /tools/perf/scripts/python
parentgpio: remove gpio_lock (diff)
downloadlinux-2559f2e09211dd4a5fde5bc5749ef4714fe38f7f.tar.gz
linux-2559f2e09211dd4a5fde5bc5749ef4714fe38f7f.zip
gpio: reinforce desc->flags handling
We now removed the gpio_lock spinlock and modified the places previously protected by it to handle desc->flags access in a consistent way. Let's improve other places that were previously unprotected by reading the flags field of gpio_desc once and using the stored value for logic consistency. If we need to modify the field, let's also write it back once with a consistent value resulting from the function's logic. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions