blob: 6bbaf66aca859f52049b806866dd145cc2c3291f [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 Gleixner6e402622011-02-08 12:36:06 +010031static inline void irq_compat_set_masked(struct irq_desc *desc)
32{
33 desc->status |= IRQ_MASKED;
34}
35
36static inline void irq_compat_clr_masked(struct irq_desc *desc)
37{
38 desc->status &= ~IRQ_MASKED;
39}
Thomas Gleixnerf230b6d2011-02-05 15:20:04 +010040static inline void irq_compat_set_move_pending(struct irq_desc *desc)
41{
42 desc->status |= IRQ_MOVE_PENDING;
43}
44
45static inline void irq_compat_clr_move_pending(struct irq_desc *desc)
46{
47 desc->status &= ~IRQ_MOVE_PENDING;
48}
Thomas Gleixner2bdd1052011-02-08 17:22:00 +010049static inline void irq_compat_set_affinity(struct irq_desc *desc)
50{
51 desc->status |= IRQ_AFFINITY_SET;
52}
53
54static inline void irq_compat_clr_affinity(struct irq_desc *desc)
55{
56 desc->status &= ~IRQ_AFFINITY_SET;
57}
Thomas Gleixner009b4c32011-02-07 21:48:49 +010058#else
59static inline void irq_compat_set_progress(struct irq_desc *desc) { }
60static inline void irq_compat_clr_progress(struct irq_desc *desc) { }
Thomas Gleixnerc1594b72011-02-07 22:11:30 +010061static inline void irq_compat_set_disabled(struct irq_desc *desc) { }
62static inline void irq_compat_clr_disabled(struct irq_desc *desc) { }
Thomas Gleixner2a0d6fb2011-02-08 12:17:57 +010063static inline void irq_compat_set_pending(struct irq_desc *desc) { }
64static inline void irq_compat_clr_pending(struct irq_desc *desc) { }
Thomas Gleixner6e402622011-02-08 12:36:06 +010065static inline void irq_compat_set_masked(struct irq_desc *desc) { }
66static inline void irq_compat_clr_masked(struct irq_desc *desc) { }
Thomas Gleixnerf230b6d2011-02-05 15:20:04 +010067static inline void irq_compat_set_move_pending(struct irq_desc *desc) { }
68static inline void irq_compat_clr_move_pending(struct irq_desc *desc) { }
Thomas Gleixner2bdd1052011-02-08 17:22:00 +010069static inline void irq_compat_set_affinity(struct irq_desc *desc) { }
70static inline void irq_compat_clr_affinity(struct irq_desc *desc) { }
Thomas Gleixner009b4c32011-02-07 21:48:49 +010071#endif
Thomas Gleixnerc1594b72011-02-07 22:11:30 +010072