2011-02-08 04:48:49 +08: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 05:11:30 +08: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 19:17:57 +08: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 19:36:06 +08: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 22:20:04 +08: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 04:48:49 +08: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 05:11:30 +08: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 19:17:57 +08: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 19:36:06 +08: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 22:20:04 +08: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 04:48:49 +08:00
|
|
|
#endif
|
2011-02-08 05:11:30 +08:00
|
|
|
|