@@ -74,7 +74,7 @@ typedef void (*irq_flow_handler_t)(unsigned int irq,
7474#define IRQF_MODIFY_MASK \
7575 (IRQ_TYPE_SENSE_MASK | IRQ_NOPROBE | IRQ_NOREQUEST | \
7676 IRQ_NOAUTOEN | IRQ_MOVE_PCNTXT | IRQ_LEVEL | IRQ_NO_BALANCING | \
77- IRQ_PER_CPU)
77+ IRQ_PER_CPU | IRQ_NESTED_THREAD )
7878
7979#ifdef CONFIG_IRQ_PER_CPU
8080# 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)
307307 __set_irq_handler (irq , handle , 1 , NULL );
308308}
309309
310- extern void set_irq_nested_thread (unsigned int irq , int nest );
311-
312310void irq_modify_status (unsigned int irq , unsigned long clr , unsigned long set );
313311
314312static 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)
331329 irq_modify_status (irq , IRQ_NOPROBE , 0 );
332330}
333331
332+ static 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+
334340/* Handle dynamic irq creation and destruction */
335341extern unsigned int create_irq_nr (unsigned int irq_want , int node );
336342extern int create_irq (void );
@@ -448,6 +454,10 @@ static inline void set_irq_probe(unsigned int irq)
448454{
449455 irq_set_probe (irq );
450456}
457+ static inline void set_irq_nested_thread (unsigned int irq , int nest )
458+ {
459+ irq_set_nested_thread (irq , nest );
460+ }
451461#endif
452462
453463int irq_alloc_descs (int irq , unsigned int from , unsigned int cnt , int node );
0 commit comments