aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/gecko.py
diff options
context:
space:
mode:
authorDmitry Torokhov <[email protected]>2024-09-03 21:49:00 -0700
committerDmitry Torokhov <[email protected]>2024-10-03 09:10:37 -0700
commitc6849218541d29a7725fd375b7095cb02df4b422 (patch)
tree626568d4ab2239491b8622e1087ce36643eca2d8 /tools/perf/scripts/python/gecko.py
parent0e7b4bc31d171856fcb753f653e0f00855763bf3 (diff)
Input: powermate - use guard notation when acquiring spinlock
Using guard notation makes the code more compact and error handling more robust by ensuring that locks are released in all code paths when control leaves critical section. Reviewed-by: Javier Carrasco <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions