diff options
Diffstat (limited to 'kernel/irq/compat.h')
-rw-r--r-- | kernel/irq/compat.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/kernel/irq/compat.h b/kernel/irq/compat.h index 0067a69781f4..593abecbcc44 100644 --- a/kernel/irq/compat.h +++ b/kernel/irq/compat.h | |||
@@ -28,6 +28,15 @@ static inline void irq_compat_clr_pending(struct irq_desc *desc) | |||
28 | { | 28 | { |
29 | desc->status &= ~IRQ_PENDING; | 29 | desc->status &= ~IRQ_PENDING; |
30 | } | 30 | } |
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 | } | ||
31 | #else | 40 | #else |
32 | static inline void irq_compat_set_progress(struct irq_desc *desc) { } | 41 | static inline void irq_compat_set_progress(struct irq_desc *desc) { } |
33 | static inline void irq_compat_clr_progress(struct irq_desc *desc) { } | 42 | static inline void irq_compat_clr_progress(struct irq_desc *desc) { } |
@@ -35,5 +44,7 @@ static inline void irq_compat_set_disabled(struct irq_desc *desc) { } | |||
35 | static inline void irq_compat_clr_disabled(struct irq_desc *desc) { } | 44 | static inline void irq_compat_clr_disabled(struct irq_desc *desc) { } |
36 | static inline void irq_compat_set_pending(struct irq_desc *desc) { } | 45 | static inline void irq_compat_set_pending(struct irq_desc *desc) { } |
37 | static inline void irq_compat_clr_pending(struct irq_desc *desc) { } | 46 | static inline void irq_compat_clr_pending(struct irq_desc *desc) { } |
47 | static inline void irq_compat_set_masked(struct irq_desc *desc) { } | ||
48 | static inline void irq_compat_clr_masked(struct irq_desc *desc) { } | ||
38 | #endif | 49 | #endif |
39 | 50 | ||