genirq: Provide compat handling for bus_lock/bus_sync_unlock
Wrap the old chip functions for bus_lock/bus_sync_unlock until the migration is complete and the old chip functions are removed. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Peter Zijlstra <peterz@infradead.org> LKML-Reference: <20100927121841.842536121@linutronix.de> Reviewed-by: H. Peter Anvin <hpa@zytor.com> Reviewed-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
@@ -43,16 +43,16 @@ extern int irq_select_affinity_usr(unsigned int irq);
|
||||
extern void irq_set_thread_affinity(struct irq_desc *desc);
|
||||
|
||||
/* Inline functions for support of irq chips on slow busses */
|
||||
static inline void chip_bus_lock(unsigned int irq, struct irq_desc *desc)
|
||||
static inline void chip_bus_lock(struct irq_desc *desc)
|
||||
{
|
||||
if (unlikely(desc->irq_data.chip->bus_lock))
|
||||
desc->irq_data.chip->bus_lock(irq);
|
||||
if (unlikely(desc->irq_data.chip->irq_bus_lock))
|
||||
desc->irq_data.chip->irq_bus_lock(&desc->irq_data);
|
||||
}
|
||||
|
||||
static inline void chip_bus_sync_unlock(unsigned int irq, struct irq_desc *desc)
|
||||
static inline void chip_bus_sync_unlock(struct irq_desc *desc)
|
||||
{
|
||||
if (unlikely(desc->irq_data.chip->bus_sync_unlock))
|
||||
desc->irq_data.chip->bus_sync_unlock(irq);
|
||||
if (unlikely(desc->irq_data.chip->irq_bus_sync_unlock))
|
||||
desc->irq_data.chip->irq_bus_sync_unlock(&desc->irq_data);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user