@@ -103,7 +103,7 @@ void irq_set_thread_affinity(struct irq_desc *desc)
103103#ifdef CONFIG_GENERIC_PENDING_IRQ
104104static inline bool irq_can_move_pcntxt (struct irq_desc * desc )
105105{
106- return desc -> status & IRQ_MOVE_PCNTXT ;
106+ return irq_settings_can_move_pcntxt ( desc ) ;
107107}
108108static inline bool irq_move_pending (struct irq_desc * desc )
109109{
@@ -411,7 +411,7 @@ void __enable_irq(struct irq_desc *desc, unsigned int irq, bool resume)
411411 if (desc -> istate & IRQS_SUSPENDED )
412412 goto err_out ;
413413 /* Prevent probing on this irq: */
414- desc -> status |= IRQ_NOPROBE ;
414+ irq_settings_set_noprobe ( desc ) ;
415415 irq_enable (desc );
416416 check_irq_resend (desc , irq );
417417 /* fall-through */
@@ -526,7 +526,7 @@ int can_request_irq(unsigned int irq, unsigned long irqflags)
526526 if (!desc )
527527 return 0 ;
528528
529- if (desc -> status & IRQ_NOREQUEST )
529+ if (! irq_settings_can_request ( desc ) )
530530 return 0 ;
531531
532532 raw_spin_lock_irqsave (& desc -> lock , flags );
@@ -820,7 +820,7 @@ __setup_irq(unsigned int irq, struct irq_desc *desc, struct irqaction *new)
820820 * Check whether the interrupt nests into another interrupt
821821 * thread.
822822 */
823- nested = desc -> status & IRQ_NESTED_THREAD ;
823+ nested = irq_settings_is_nested_thread ( desc ) ;
824824 if (nested ) {
825825 if (!new -> thread_fn )
826826 return - EINVAL ;
@@ -917,7 +917,7 @@ __setup_irq(unsigned int irq, struct irq_desc *desc, struct irqaction *new)
917917 if (new -> flags & IRQF_ONESHOT )
918918 desc -> istate |= IRQS_ONESHOT ;
919919
920- if (! (desc -> status & IRQ_NOAUTOEN ))
920+ if (irq_settings_can_autoenable (desc ))
921921 irq_startup (desc );
922922 else
923923 /* Undo nested disables: */
@@ -1217,7 +1217,7 @@ int request_threaded_irq(unsigned int irq, irq_handler_t handler,
12171217 if (!desc )
12181218 return - EINVAL ;
12191219
1220- if (desc -> status & IRQ_NOREQUEST )
1220+ if (! irq_settings_can_request ( desc ) )
12211221 return - EINVAL ;
12221222
12231223 if (!handler ) {
@@ -1292,7 +1292,7 @@ int request_any_context_irq(unsigned int irq, irq_handler_t handler,
12921292 if (!desc )
12931293 return - EINVAL ;
12941294
1295- if (desc -> status & IRQ_NESTED_THREAD ) {
1295+ if (irq_settings_is_nested_thread ( desc ) ) {
12961296 ret = request_threaded_irq (irq , NULL , handler ,
12971297 flags , name , dev_id );
12981298 return !ret ? IRQC_IS_NESTED : ret ;
0 commit comments