009b4c3b8a
We need to maintain the flag for now in both fields status and istate. Add a CONFIG_GENERIC_HARDIRQS_NO_COMPAT switch to allow testing w/o the status one. Wrap the access to status IRQ_INPROGRESS in a inline which can be turned of with CONFIG_GENERIC_HARDIRQS_NO_COMPAT along with the define. There is no reason that anything outside of core looks at this. That needs some modifications, but we'll get there. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
17 lines
448 B
C
17 lines
448 B
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;
|
|
}
|
|
#else
|
|
static inline void irq_compat_set_progress(struct irq_desc *desc) { }
|
|
static inline void irq_compat_clr_progress(struct irq_desc *desc) { }
|
|
#endif
|