diff options
| author | Thomas Gleixner <tglx@linutronix.de> | 2025-04-29 09:54:49 +0300 |
|---|---|---|
| committer | Thomas Gleixner <tglx@linutronix.de> | 2025-05-07 10:08:11 +0300 |
| commit | 0f70a49f3fa386d34203efd426a2937592cd26c6 (patch) | |
| tree | f88456728aaf2d8d2bbb5192371ed8ba0df2381d /tools/perf/scripts/python/task-analyzer.py | |
| parent | e5032ead8599affac5d8b816ea3c9d63ebeec6b4 (diff) | |
| download | linux-0f70a49f3fa386d34203efd426a2937592cd26c6.tar.xz | |
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
