summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/sched-migration.py
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2024-09-04 07:31:03 +0300
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2024-10-03 19:07:32 +0300
commit45a81459722aa48de343910001355b0108b9c16b (patch)
treecdad151eeaeef6c8addbc30c84bca02b3c96079f /tools/perf/scripts/python/sched-migration.py
parent10068a36b01dc25f598259ffd0562f474ae3ed94 (diff)
downloadlinux-45a81459722aa48de343910001355b0108b9c16b.tar.xz
Input: xpad - use guard notation when acquiring mutex and 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. Link: https://lore.kernel.org/r/20240904043104.1030257-7-dmitry.torokhov@gmail.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions