summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/sctop.py
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2024-08-23 13:15:57 +0300
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2024-08-25 12:02:15 +0300
commitf1619986d7e996eb6e53c7fe8ab32e66b17e1cf1 (patch)
tree503bb97d4809c0c78cc0f8787ecf114ab5b0c61f /tools/perf/scripts/python/sctop.py
parent99602b4d30359f971247f8438afac57cbd1832f0 (diff)
downloadlinux-f1619986d7e996eb6e53c7fe8ab32e66b17e1cf1.tar.xz
memory: emif: simplify locking with guard()
Simplify error handling (less gotos) over locks with guard(). The driver used file-scope variable 'irq_state' for storing IRQ state with spin_lock_irqsave, so move it into respective local scopes. This should be equivalent, but more readable (less global variables). Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huwei.com> Link: https://lore.kernel.org/r/20240823-b4-cleanup-h-guard-v1-2-01668915bd55@linaro.org Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions