diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2010-09-27 08:44:35 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2010-10-04 06:43:35 -0400 |
commit | 3876ec9ef3775d062345b3760d3271ecb8cd3fea (patch) | |
tree | 6c1cd233753fe09d48bdf107da34b4dbe4e003fc /kernel/irq/internals.h | |
parent | a77c4635915021c646cc017f22239e66d1aab4d5 (diff) |
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>
Diffstat (limited to 'kernel/irq/internals.h')
-rw-r--r-- | kernel/irq/internals.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kernel/irq/internals.h b/kernel/irq/internals.h index 562fc7eeabec..ecafbfee5b12 100644 --- a/kernel/irq/internals.h +++ b/kernel/irq/internals.h | |||
@@ -43,16 +43,16 @@ extern int irq_select_affinity_usr(unsigned int irq); | |||
43 | extern void irq_set_thread_affinity(struct irq_desc *desc); | 43 | extern void irq_set_thread_affinity(struct irq_desc *desc); |
44 | 44 | ||
45 | /* Inline functions for support of irq chips on slow busses */ | 45 | /* Inline functions for support of irq chips on slow busses */ |
46 | static inline void chip_bus_lock(unsigned int irq, struct irq_desc *desc) | 46 | static inline void chip_bus_lock(struct irq_desc *desc) |
47 | { | 47 | { |
48 | if (unlikely(desc->irq_data.chip->bus_lock)) | 48 | if (unlikely(desc->irq_data.chip->irq_bus_lock)) |
49 | desc->irq_data.chip->bus_lock(irq); | 49 | desc->irq_data.chip->irq_bus_lock(&desc->irq_data); |
50 | } | 50 | } |
51 | 51 | ||
52 | static inline void chip_bus_sync_unlock(unsigned int irq, struct irq_desc *desc) | 52 | static inline void chip_bus_sync_unlock(struct irq_desc *desc) |
53 | { | 53 | { |
54 | if (unlikely(desc->irq_data.chip->bus_sync_unlock)) | 54 | if (unlikely(desc->irq_data.chip->irq_bus_sync_unlock)) |
55 | desc->irq_data.chip->bus_sync_unlock(irq); | 55 | desc->irq_data.chip->irq_bus_sync_unlock(&desc->irq_data); |
56 | } | 56 | } |
57 | 57 | ||
58 | /* | 58 | /* |