aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/irq/compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/irq/compat.h')
-rw-r--r--kernel/irq/compat.h12
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
19static inline void irq_compat_clr_disabled(struct irq_desc *desc) 18static inline void irq_compat_clr_disabled(struct irq_desc *desc)
20{ 19{
21 desc->status &= ~IRQ_DISABLED; 20 desc->status &= ~IRQ_DISABLED;
22} 21}
22static 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}
23#else 31#else
24static inline void irq_compat_set_progress(struct irq_desc *desc) { } 32static inline void irq_compat_set_progress(struct irq_desc *desc) { }
25static inline void irq_compat_clr_progress(struct irq_desc *desc) { } 33static inline void irq_compat_clr_progress(struct irq_desc *desc) { }
26static inline void irq_compat_set_disabled(struct irq_desc *desc) { } 34static inline void irq_compat_set_disabled(struct irq_desc *desc) { }
27static inline void irq_compat_clr_disabled(struct irq_desc *desc) { } 35static inline void irq_compat_clr_disabled(struct irq_desc *desc) { }
36static inline void irq_compat_set_pending(struct irq_desc *desc) { }
37static inline void irq_compat_clr_pending(struct irq_desc *desc) { }
28#endif 38#endif
29 39