diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2010-10-01 09:17:14 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2010-10-04 07:40:24 -0400 |
commit | bd151412263a67b5321e9dd1d5b4bf6d96fdebf3 (patch) | |
tree | 7571b3eaf7ebc2ef200fb00688543f00a451c5f9 /kernel/irq/internals.h | |
parent | 21e2b8c62cca8f7dbec0c8c131ca1637e4a5670f (diff) |
genirq: Provide config option to disable deprecated code
This option covers now the old chip functions and the irq_desc data
fields which are moving to struct irq_data. More stuff will follow.
Pretty handy for testing a conversion, whether something broke or not.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/irq/internals.h')
-rw-r--r-- | kernel/irq/internals.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/kernel/irq/internals.h b/kernel/irq/internals.h index ecafbfee5b1..b905f0ab1bb 100644 --- a/kernel/irq/internals.h +++ b/kernel/irq/internals.h | |||
@@ -42,6 +42,16 @@ extern int irq_select_affinity_usr(unsigned int irq); | |||
42 | 42 | ||
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 | #ifndef CONFIG_GENERIC_HARDIRQS_NO_DEPRECATED | ||
46 | static inline void irq_end(unsigned int irq, struct irq_desc *desc) | ||
47 | { | ||
48 | if (desc->irq_data.chip && desc->irq_data.chip->end) | ||
49 | desc->irq_data.chip->end(irq); | ||
50 | } | ||
51 | #else | ||
52 | static inline void irq_end(unsigned int irq, struct irq_desc *desc) { } | ||
53 | #endif | ||
54 | |||
45 | /* Inline functions for support of irq chips on slow busses */ | 55 | /* Inline functions for support of irq chips on slow busses */ |
46 | static inline void chip_bus_lock(struct irq_desc *desc) | 56 | static inline void chip_bus_lock(struct irq_desc *desc) |
47 | { | 57 | { |