Skip to content

Commit 7ae844a

Browse files
committed
genirq/generic-chip: Remove unused lock wrappers
All users are converted to lock guards. Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/all/[email protected]
1 parent b00bee8 commit 7ae844a

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

include/linux/irq.h

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1222,26 +1222,6 @@ static inline struct irq_chip_type *irq_data_get_chip_type(struct irq_data *d)
12221222

12231223
#define IRQ_MSK(n) (u32)((n) < 32 ? ((1 << (n)) - 1) : UINT_MAX)
12241224

1225-
static inline void irq_gc_lock(struct irq_chip_generic *gc)
1226-
{
1227-
raw_spin_lock(&gc->lock);
1228-
}
1229-
1230-
static inline void irq_gc_unlock(struct irq_chip_generic *gc)
1231-
{
1232-
raw_spin_unlock(&gc->lock);
1233-
}
1234-
1235-
/*
1236-
* The irqsave variants are for usage in non interrupt code. Do not use
1237-
* them in irq_chip callbacks. Use irq_gc_lock() instead.
1238-
*/
1239-
#define irq_gc_lock_irqsave(gc, flags) \
1240-
raw_spin_lock_irqsave(&(gc)->lock, flags)
1241-
1242-
#define irq_gc_unlock_irqrestore(gc, flags) \
1243-
raw_spin_unlock_irqrestore(&(gc)->lock, flags)
1244-
12451225
static inline void irq_reg_writel(struct irq_chip_generic *gc,
12461226
u32 val, int reg_offset)
12471227
{

0 commit comments

Comments
 (0)