summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2024-09-05 07:17:25 +0300
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2024-10-04 11:04:14 +0300
commit5b53a9d40c4f83b44de8da06af9a9c9b3fb14988 (patch)
tree56bb72dab376f5416f532fd27f893199f24a439e /tools/perf/scripts/python
parent924c5eeb17490136d9ec688b0926bbae27eb0a1f (diff)
downloadlinux-5b53a9d40c4f83b44de8da06af9a9c9b3fb14988.tar.xz
Input: serio_raw - use guard notation for locks and other resources
Use guard notation when acquiring mutexes and spinlocks, and when pausing and resuming serio port. Such 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. Link: https://lore.kernel.org/r/20240905041732.2034348-21-dmitry.torokhov@gmail.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions