aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/irq/internals.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/irq/internals.h')
-rw-r--r--kernel/irq/internals.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/kernel/irq/internals.h b/kernel/irq/internals.h
index f80a77471617..935bec4bfa87 100644
--- a/kernel/irq/internals.h
+++ b/kernel/irq/internals.h
@@ -126,6 +126,34 @@ static inline void chip_bus_sync_unlock(struct irq_desc *desc)
126 desc->irq_data.chip->irq_bus_sync_unlock(&desc->irq_data); 126 desc->irq_data.chip->irq_bus_sync_unlock(&desc->irq_data);
127} 127}
128 128
129struct irq_desc *
130__irq_get_desc_lock(unsigned int irq, unsigned long *flags, bool bus);
131void __irq_put_desc_unlock(struct irq_desc *desc, unsigned long flags, bool bus);
132
133static inline struct irq_desc *
134irq_get_desc_buslock(unsigned int irq, unsigned long *flags)
135{
136 return __irq_get_desc_lock(irq, flags, true);
137}
138
139static inline void
140irq_put_desc_busunlock(struct irq_desc *desc, unsigned long flags)
141{
142 __irq_put_desc_unlock(desc, flags, true);
143}
144
145static inline struct irq_desc *
146irq_get_desc_lock(unsigned int irq, unsigned long *flags)
147{
148 return __irq_get_desc_lock(irq, flags, false);
149}
150
151static inline void
152irq_put_desc_unlock(struct irq_desc *desc, unsigned long flags)
153{
154 __irq_put_desc_unlock(desc, flags, false);
155}
156
129/* 157/*
130 * Manipulation functions for irq_data.state 158 * Manipulation functions for irq_data.state
131 */ 159 */