diff options
Diffstat (limited to 'kernel/irq/compat.h')
-rw-r--r-- | kernel/irq/compat.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/kernel/irq/compat.h b/kernel/irq/compat.h index bc0c2a501e82..0067a69781f4 100644 --- a/kernel/irq/compat.h +++ b/kernel/irq/compat.h | |||
@@ -15,15 +15,25 @@ static inline void irq_compat_set_disabled(struct irq_desc *desc) | |||
15 | { | 15 | { |
16 | desc->status |= IRQ_DISABLED; | 16 | desc->status |= IRQ_DISABLED; |
17 | } | 17 | } |
18 | |||
19 | static inline void irq_compat_clr_disabled(struct irq_desc *desc) | 18 | static inline void irq_compat_clr_disabled(struct irq_desc *desc) |
20 | { | 19 | { |
21 | desc->status &= ~IRQ_DISABLED; | 20 | desc->status &= ~IRQ_DISABLED; |
22 | } | 21 | } |
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 | } | ||
23 | #else | 31 | #else |
24 | static inline void irq_compat_set_progress(struct irq_desc *desc) { } | 32 | static inline void irq_compat_set_progress(struct irq_desc *desc) { } |
25 | static inline void irq_compat_clr_progress(struct irq_desc *desc) { } | 33 | static inline void irq_compat_clr_progress(struct irq_desc *desc) { } |
26 | static inline void irq_compat_set_disabled(struct irq_desc *desc) { } | 34 | static inline void irq_compat_set_disabled(struct irq_desc *desc) { } |
27 | static inline void irq_compat_clr_disabled(struct irq_desc *desc) { } | 35 | static inline void irq_compat_clr_disabled(struct irq_desc *desc) { } |
36 | static inline void irq_compat_set_pending(struct irq_desc *desc) { } | ||
37 | static inline void irq_compat_clr_pending(struct irq_desc *desc) { } | ||
28 | #endif | 38 | #endif |
29 | 39 | ||