Thomas Gleixner | 009b4c3 | 2011-02-07 21:48:49 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Compat layer for transition period |
| 3 | */ |
| 4 | #ifndef CONFIG_GENERIC_HARDIRQS_NO_COMPAT |
| 5 | static inline void irq_compat_set_progress(struct irq_desc *desc) |
| 6 | { |
| 7 | desc->status |= IRQ_INPROGRESS; |
| 8 | } |
| 9 | |
| 10 | static inline void irq_compat_clr_progress(struct irq_desc *desc) |
| 11 | { |
| 12 | desc->status &= ~IRQ_INPROGRESS; |
| 13 | } |
Thomas Gleixner | c1594b7 | 2011-02-07 22:11:30 +0100 | [diff] [blame] | 14 | static inline void irq_compat_set_disabled(struct irq_desc *desc) |
| 15 | { |
| 16 | desc->status |= IRQ_DISABLED; |
| 17 | } |
Thomas Gleixner | c1594b7 | 2011-02-07 22:11:30 +0100 | [diff] [blame] | 18 | static inline void irq_compat_clr_disabled(struct irq_desc *desc) |
| 19 | { |
| 20 | desc->status &= ~IRQ_DISABLED; |
| 21 | } |
Thomas Gleixner | 2a0d6fb | 2011-02-08 12:17:57 +0100 | [diff] [blame] | 22 | static inline void irq_compat_set_pending(struct irq_desc *desc) |
| 23 | { |
| 24 | desc->status |= IRQ_PENDING; |
| 25 | } |
| 26 | |
| 27 | static inline void irq_compat_clr_pending(struct irq_desc *desc) |
| 28 | { |
| 29 | desc->status &= ~IRQ_PENDING; |
| 30 | } |
Thomas Gleixner | 6e40262 | 2011-02-08 12:36:06 +0100 | [diff] [blame] | 31 | static inline void irq_compat_set_masked(struct irq_desc *desc) |
| 32 | { |
| 33 | desc->status |= IRQ_MASKED; |
| 34 | } |
| 35 | |
| 36 | static inline void irq_compat_clr_masked(struct irq_desc *desc) |
| 37 | { |
| 38 | desc->status &= ~IRQ_MASKED; |
| 39 | } |
Thomas Gleixner | f230b6d | 2011-02-05 15:20:04 +0100 | [diff] [blame] | 40 | static inline void irq_compat_set_move_pending(struct irq_desc *desc) |
| 41 | { |
| 42 | desc->status |= IRQ_MOVE_PENDING; |
| 43 | } |
| 44 | |
| 45 | static inline void irq_compat_clr_move_pending(struct irq_desc *desc) |
| 46 | { |
| 47 | desc->status &= ~IRQ_MOVE_PENDING; |
| 48 | } |
Thomas Gleixner | 2bdd105 | 2011-02-08 17:22:00 +0100 | [diff] [blame] | 49 | static inline void irq_compat_set_affinity(struct irq_desc *desc) |
| 50 | { |
| 51 | desc->status |= IRQ_AFFINITY_SET; |
| 52 | } |
| 53 | |
| 54 | static inline void irq_compat_clr_affinity(struct irq_desc *desc) |
| 55 | { |
| 56 | desc->status &= ~IRQ_AFFINITY_SET; |
| 57 | } |
Thomas Gleixner | 009b4c3 | 2011-02-07 21:48:49 +0100 | [diff] [blame] | 58 | #else |
| 59 | static inline void irq_compat_set_progress(struct irq_desc *desc) { } |
| 60 | static inline void irq_compat_clr_progress(struct irq_desc *desc) { } |
Thomas Gleixner | c1594b7 | 2011-02-07 22:11:30 +0100 | [diff] [blame] | 61 | static inline void irq_compat_set_disabled(struct irq_desc *desc) { } |
| 62 | static inline void irq_compat_clr_disabled(struct irq_desc *desc) { } |
Thomas Gleixner | 2a0d6fb | 2011-02-08 12:17:57 +0100 | [diff] [blame] | 63 | static inline void irq_compat_set_pending(struct irq_desc *desc) { } |
| 64 | static inline void irq_compat_clr_pending(struct irq_desc *desc) { } |
Thomas Gleixner | 6e40262 | 2011-02-08 12:36:06 +0100 | [diff] [blame] | 65 | static inline void irq_compat_set_masked(struct irq_desc *desc) { } |
| 66 | static inline void irq_compat_clr_masked(struct irq_desc *desc) { } |
Thomas Gleixner | f230b6d | 2011-02-05 15:20:04 +0100 | [diff] [blame] | 67 | static inline void irq_compat_set_move_pending(struct irq_desc *desc) { } |
| 68 | static inline void irq_compat_clr_move_pending(struct irq_desc *desc) { } |
Thomas Gleixner | 2bdd105 | 2011-02-08 17:22:00 +0100 | [diff] [blame] | 69 | static inline void irq_compat_set_affinity(struct irq_desc *desc) { } |
| 70 | static inline void irq_compat_clr_affinity(struct irq_desc *desc) { } |
Thomas Gleixner | 009b4c3 | 2011-02-07 21:48:49 +0100 | [diff] [blame] | 71 | #endif |
Thomas Gleixner | c1594b7 | 2011-02-07 22:11:30 +0100 | [diff] [blame] | 72 | |