Skip to content

Commit ecb84a3

Browse files
committed
genirq/debugfs: Convert to lock guards
Convert all lock/unlock pairs to guards and tidy up the code. No functional change. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lore.kernel.org/all/20250429065420.620200108@linutronix.de
1 parent 88a4df1 commit ecb84a3

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

kernel/irq/debugfs.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ static int irq_debug_show(struct seq_file *m, void *p)
160160
struct irq_desc *desc = m->private;
161161
struct irq_data *data;
162162

163-
raw_spin_lock_irq(&desc->lock);
163+
guard(raw_spinlock_irq)(&desc->lock);
164164
data = irq_desc_get_irq_data(desc);
165165
seq_printf(m, "handler: %ps\n", desc->handle_irq);
166166
seq_printf(m, "device: %s\n", desc->dev_name);
@@ -178,7 +178,6 @@ static int irq_debug_show(struct seq_file *m, void *p)
178178
seq_printf(m, "node: %d\n", irq_data_get_node(data));
179179
irq_debug_show_masks(m, desc);
180180
irq_debug_show_data(m, data, 0);
181-
raw_spin_unlock_irq(&desc->lock);
182181
return 0;
183182
}
184183

0 commit comments

Comments
 (0)