mirror of
https://github.com/torvalds/linux.git
synced 2024-11-29 15:41:36 +00:00
2bdd10558c
Keep status in sync until last abuser is gone. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
73 lines
2.1 KiB
C
73 lines
2.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;
|
|
}
|
|
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;
|
|
}
|
|
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;
|
|
}
|
|
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;
|
|
}
|
|
#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) { }
|
|
static inline void irq_compat_set_masked(struct irq_desc *desc) { }
|
|
static inline void irq_compat_clr_masked(struct irq_desc *desc) { }
|
|
static inline void irq_compat_set_move_pending(struct irq_desc *desc) { }
|
|
static inline void irq_compat_clr_move_pending(struct irq_desc *desc) { }
|
|
static inline void irq_compat_set_affinity(struct irq_desc *desc) { }
|
|
static inline void irq_compat_clr_affinity(struct irq_desc *desc) { }
|
|
#endif
|
|
|