forked from luck/tmp_suning_uos_patched
2a0d6fb335
Keep status in sync until all users are fixed. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
40 lines
1.1 KiB
C
40 lines
1.1 KiB
C
/*
|
|
* 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;
|
|
}
|
|
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;
|
|
}
|
|
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;
|
|
}
|
|
#else
|
|
static inline void irq_compat_set_progress(struct irq_desc *desc) { }
|
|
static inline void irq_compat_clr_progress(struct irq_desc *desc) { }
|
|
static inline void irq_compat_set_disabled(struct irq_desc *desc) { }
|
|
static inline void irq_compat_clr_disabled(struct irq_desc *desc) { }
|
|
static inline void irq_compat_set_pending(struct irq_desc *desc) { }
|
|
static inline void irq_compat_clr_pending(struct irq_desc *desc) { }
|
|
#endif
|
|
|