blob: 0067a69781f47bd1aafe19ac87787b37624491a6 [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}
Thomas Gleixnerc1594b72011-02-07 22:11:30 +010018static inline void irq_compat_clr_disabled(struct irq_desc *desc)
19{
20 desc->status &= ~IRQ_DISABLED;
21}
Thomas Gleixner2a0d6fb2011-02-08 12:17:57 +010022static inline void irq_compat_set_pending(struct irq_desc *desc)
23{
24 desc->status |= IRQ_PENDING;
25}
26
27static inline void irq_compat_clr_pending(struct irq_desc *desc)
28{
29 desc->status &= ~IRQ_PENDING;
30}
Thomas Gleixner009b4c32011-02-07 21:48:49 +010031#else
32static inline void irq_compat_set_progress(struct irq_desc *desc) { }
33static inline void irq_compat_clr_progress(struct irq_desc *desc) { }
Thomas Gleixnerc1594b72011-02-07 22:11:30 +010034static inline void irq_compat_set_disabled(struct irq_desc *desc) { }
35static inline void irq_compat_clr_disabled(struct irq_desc *desc) { }
Thomas Gleixner2a0d6fb2011-02-08 12:17:57 +010036static inline void irq_compat_set_pending(struct irq_desc *desc) { }
37static inline void irq_compat_clr_pending(struct irq_desc *desc) { }
Thomas Gleixner009b4c32011-02-07 21:48:49 +010038#endif
Thomas Gleixnerc1594b72011-02-07 22:11:30 +010039