2011-02-08 03:48:49 +07: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-08 04:11:30 +07: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 18:17:57 +07: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 18:36:06 +07: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 21:20:04 +07: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 23:22:00 +07: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-08 03:48:49 +07: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-08 04:11:30 +07: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 18:17:57 +07: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 18:36:06 +07: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 21:20:04 +07: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 23:22:00 +07: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-08 03:48:49 +07:00
|
|
|
#endif
|
2011-02-08 04:11:30 +07:00
|
|
|
|