aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/irq.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2011-02-14 07:33:16 -0500
committerThomas Gleixner <tglx@linutronix.de>2011-02-19 06:58:15 -0500
commit6f91a52d9bb28396177662f1da0f2e2cef9cf5d0 (patch)
tree0be983e2d1c1a622716cff61354f02e85ef3352e /include/linux/irq.h
parent7acdd53e5b2c55b6f7e3427e85e2f91fa814a4f9 (diff)
genirq: Use modify_status for set_irq_nested_thread
No need for a separate function in the core code. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/linux/irq.h')
-rw-r--r--include/linux/irq.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/include/linux/irq.h b/include/linux/irq.h
index a900741b43ea..67b77cfb2a34 100644
--- a/include/linux/irq.h
+++ b/include/linux/irq.h
@@ -74,7 +74,7 @@ typedef void (*irq_flow_handler_t)(unsigned int irq,
74#define IRQF_MODIFY_MASK \ 74#define IRQF_MODIFY_MASK \
75 (IRQ_TYPE_SENSE_MASK | IRQ_NOPROBE | IRQ_NOREQUEST | \ 75 (IRQ_TYPE_SENSE_MASK | IRQ_NOPROBE | IRQ_NOREQUEST | \
76 IRQ_NOAUTOEN | IRQ_MOVE_PCNTXT | IRQ_LEVEL | IRQ_NO_BALANCING | \ 76 IRQ_NOAUTOEN | IRQ_MOVE_PCNTXT | IRQ_LEVEL | IRQ_NO_BALANCING | \
77 IRQ_PER_CPU) 77 IRQ_PER_CPU | IRQ_NESTED_THREAD)
78 78
79#ifdef CONFIG_IRQ_PER_CPU 79#ifdef CONFIG_IRQ_PER_CPU
80# define CHECK_IRQ_PER_CPU(var) ((var) & IRQ_PER_CPU) 80# define CHECK_IRQ_PER_CPU(var) ((var) & IRQ_PER_CPU)
@@ -307,8 +307,6 @@ set_irq_chained_handler(unsigned int irq, irq_flow_handler_t handle)
307 __set_irq_handler(irq, handle, 1, NULL); 307 __set_irq_handler(irq, handle, 1, NULL);
308} 308}
309 309
310extern void set_irq_nested_thread(unsigned int irq, int nest);
311
312void irq_modify_status(unsigned int irq, unsigned long clr, unsigned long set); 310void irq_modify_status(unsigned int irq, unsigned long clr, unsigned long set);
313 311
314static inline void irq_set_status_flags(unsigned int irq, unsigned long set) 312static inline void irq_set_status_flags(unsigned int irq, unsigned long set)
@@ -331,6 +329,14 @@ static inline void irq_set_probe(unsigned int irq)
331 irq_modify_status(irq, IRQ_NOPROBE, 0); 329 irq_modify_status(irq, IRQ_NOPROBE, 0);
332} 330}
333 331
332static inline void irq_set_nested_thread(unsigned int irq, bool nest)
333{
334 if (nest)
335 irq_set_status_flags(irq, IRQ_NESTED_THREAD);
336 else
337 irq_clear_status_flags(irq, IRQ_NESTED_THREAD);
338}
339
334/* Handle dynamic irq creation and destruction */ 340/* Handle dynamic irq creation and destruction */
335extern unsigned int create_irq_nr(unsigned int irq_want, int node); 341extern unsigned int create_irq_nr(unsigned int irq_want, int node);
336extern int create_irq(void); 342extern int create_irq(void);
@@ -448,6 +454,10 @@ static inline void set_irq_probe(unsigned int irq)
448{ 454{
449 irq_set_probe(irq); 455 irq_set_probe(irq);
450} 456}
457static inline void set_irq_nested_thread(unsigned int irq, int nest)
458{
459 irq_set_nested_thread(irq, nest);
460}
451#endif 461#endif
452 462
453int irq_alloc_descs(int irq, unsigned int from, unsigned int cnt, int node); 463int irq_alloc_descs(int irq, unsigned int from, unsigned int cnt, int node);