diff options
| author | Thomas Gleixner <[email protected]> | 2024-10-09 10:28:58 +0200 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2024-10-25 19:49:13 +0200 |
| commit | c2a329566a3d5a638061733f232c40379235931d (patch) | |
| tree | 2353907b12f6fb6815910e5b8a982e345e89ea3d /tools/perf/scripts/python/task-analyzer.py | |
| parent | 1f7226b1e70a0e2ca3b305808cc7f1ae3acbd127 (diff) | |
timekeeping: Simplify code in timekeeping_advance()
timekeeping_advance() takes the timekeeper_lock and releases it before
returning. When an early return is required, goto statements are used to
make sure the lock is realeased properly. When the code was written the
locking guard() was not yet available.
Use the guard() to simplify the code and while at it cleanup ordering of
function variables. No functional change.
Signed-off-by: Thomas Gleixner <[email protected]>
Signed-off-by: Anna-Maria Behnsen <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Acked-by: John Stultz <[email protected]>
Link: https://lore.kernel.org/all/20241009-devel-anna-maria-b4-timers-ptp-timekeeping-v2-5-554456a44a15@linutronix.de
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions