summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2025-04-29 08:54:49 +0200
committerThomas Gleixner <tglx@linutronix.de>2025-05-07 09:08:11 +0200
commit0f70a49f3fa386d34203efd426a2937592cd26c6 (patch)
treef88456728aaf2d8d2bbb5192371ed8ba0df2381d /tools/perf/scripts/python/task-analyzer.py
parente5032ead8599affac5d8b816ea3c9d63ebeec6b4 (diff)
genirq: Provide conditional lock guards
The interrupt core code has an ever repeating pattern: unsigned long flags; struct irq_desc *desc = irq_get_desc_[bus]lock(irq, &flags, mode); if (!desc) return -EINVAL; .... irq_put_desc_[bus]unlock(desc, flags); That requires gotos in failure paths and just creates visual clutter. Provide lock guards, which allow to simplify the code. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lore.kernel.org/all/20250429065420.061659985@linutronix.de
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions