diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-02-07 15:48:49 -0500 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2011-02-19 06:58:16 -0500 |
commit | 009b4c3b8ad584b3462734127a5bec680d5d6af4 (patch) | |
tree | f7cb860dde86ba96afcc085ec7a75ca2a41e49b6 /include/linux/irq.h | |
parent | 6954b75b488dd740950573f244ddd66fd28620aa (diff) |
genirq: Add IRQ_INPROGRESS to core
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>
Diffstat (limited to 'include/linux/irq.h')
-rw-r--r-- | include/linux/irq.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/irq.h b/include/linux/irq.h index 047a695511df..274590fc55a3 100644 --- a/include/linux/irq.h +++ b/include/linux/irq.h | |||
@@ -50,7 +50,11 @@ typedef void (*irq_flow_handler_t)(unsigned int irq, | |||
50 | #define IRQ_TYPE_PROBE 0x00000010 /* Probing in progress */ | 50 | #define IRQ_TYPE_PROBE 0x00000010 /* Probing in progress */ |
51 | 51 | ||
52 | /* Internal flags */ | 52 | /* Internal flags */ |
53 | #define IRQ_INPROGRESS 0x00000100 /* IRQ handler active - do not enter! */ | 53 | |
54 | #ifndef CONFIG_GENERIC_HARDIRQS_NO_COMPAT | ||
55 | #define IRQ_INPROGRESS 0x00000100 /* DEPRECATED */ | ||
56 | #endif | ||
57 | |||
54 | #define IRQ_DISABLED 0x00000200 /* IRQ disabled - do not enter! */ | 58 | #define IRQ_DISABLED 0x00000200 /* IRQ disabled - do not enter! */ |
55 | #define IRQ_PENDING 0x00000400 /* IRQ pending - replay on enable */ | 59 | #define IRQ_PENDING 0x00000400 /* IRQ pending - replay on enable */ |
56 | #define IRQ_REPLAY 0x00000800 /* IRQ has been replayed but not acked yet */ | 60 | #define IRQ_REPLAY 0x00000800 /* IRQ has been replayed but not acked yet */ |