2011-02-07 21:48:49 +01:00
/*
* Compat layer for transition period
*/
# ifndef CONFIG_GENERIC_HARDIRQS_NO_COMPAT
static inline void irq_compat_set_progress ( struct irq_desc * desc )
{
desc - > status | = IRQ_INPROGRESS ;
}
static inline void irq_compat_clr_progress ( struct irq_desc * desc )
{
desc - > status & = ~ IRQ_INPROGRESS ;
}
2011-02-07 22:11:30 +01:00
static inline void irq_compat_set_disabled ( struct irq_desc * desc )
{
desc - > status | = IRQ_DISABLED ;
}
static inline void irq_compat_clr_disabled ( struct irq_desc * desc )
{
desc - > status & = ~ IRQ_DISABLED ;
}
2011-02-08 12:17:57 +01:00
static inline void irq_compat_set_pending ( struct irq_desc * desc )
{
desc - > status | = IRQ_PENDING ;
}
static inline void irq_compat_clr_pending ( struct irq_desc * desc )
{
desc - > status & = ~ IRQ_PENDING ;
}
2011-02-08 12:36:06 +01:00
static inline void irq_compat_set_masked ( struct irq_desc * desc )
{
desc - > status | = IRQ_MASKED ;
}
static inline void irq_compat_clr_masked ( struct irq_desc * desc )
{
desc - > status & = ~ IRQ_MASKED ;
}
2011-02-05 15:20:04 +01:00
static inline void irq_compat_set_move_pending ( struct irq_desc * desc )
{
desc - > status | = IRQ_MOVE_PENDING ;
}
static inline void irq_compat_clr_move_pending ( struct irq_desc * desc )
{
desc - > status & = ~ IRQ_MOVE_PENDING ;
}
2011-02-08 17:22:00 +01:00
static inline void irq_compat_set_affinity ( struct irq_desc * desc )
{
desc - > status | = IRQ_AFFINITY_SET ;
}
static inline void irq_compat_clr_affinity ( struct irq_desc * desc )
{
desc - > status & = ~ IRQ_AFFINITY_SET ;
}
2011-02-07 21:48:49 +01:00
# else
static inline void irq_compat_set_progress ( struct irq_desc * desc ) { }
static inline void irq_compat_clr_progress ( struct irq_desc * desc ) { }
2011-02-07 22:11:30 +01:00
static inline void irq_compat_set_disabled ( struct irq_desc * desc ) { }
static inline void irq_compat_clr_disabled ( struct irq_desc * desc ) { }
2011-02-08 12:17:57 +01:00
static inline void irq_compat_set_pending ( struct irq_desc * desc ) { }
static inline void irq_compat_clr_pending ( struct irq_desc * desc ) { }
2011-02-08 12:36:06 +01:00
static inline void irq_compat_set_masked ( struct irq_desc * desc ) { }
static inline void irq_compat_clr_masked ( struct irq_desc * desc ) { }
2011-02-05 15:20:04 +01:00
static inline void irq_compat_set_move_pending ( struct irq_desc * desc ) { }
static inline void irq_compat_clr_move_pending ( struct irq_desc * desc ) { }
2011-02-08 17:22:00 +01:00
static inline void irq_compat_set_affinity ( struct irq_desc * desc ) { }
static inline void irq_compat_clr_affinity ( struct irq_desc * desc ) { }
2011-02-07 21:48:49 +01:00
# endif
2011-02-07 22:11:30 +01:00