blob: bc0c2a501e822be6d12070e71462ccc2887fe246 [file] [log] [blame]
Thomas Gleixner009b4c32011-02-07 21:48:49 +01001/*
2 * Compat layer for transition period
3 */
4#ifndef CONFIG_GENERIC_HARDIRQS_NO_COMPAT
5static inline void irq_compat_set_progress(struct irq_desc *desc)
6{
7 desc->status |= IRQ_INPROGRESS;
8}
9
10static inline void irq_compat_clr_progress(struct irq_desc *desc)
11{
12 desc->status &= ~IRQ_INPROGRESS;
13}
Thomas Gleixnerc1594b72011-02-07 22:11:30 +010014static inline void irq_compat_set_disabled(struct irq_desc *desc)
15{
16 desc->status |= IRQ_DISABLED;
17}
18
19static inline void irq_compat_clr_disabled(struct irq_desc *desc)
20{
21 desc->status &= ~IRQ_DISABLED;
22}
Thomas Gleixner009b4c32011-02-07 21:48:49 +010023#else
24static inline void irq_compat_set_progress(struct irq_desc *desc) { }
25static inline void irq_compat_clr_progress(struct irq_desc *desc) { }
Thomas Gleixnerc1594b72011-02-07 22:11:30 +010026static inline void irq_compat_set_disabled(struct irq_desc *desc) { }
27static inline void irq_compat_clr_disabled(struct irq_desc *desc) { }
Thomas Gleixner009b4c32011-02-07 21:48:49 +010028#endif
Thomas Gleixnerc1594b72011-02-07 22:11:30 +010029