diff options
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2007-10-16 04:24:01 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-16 12:42:50 -0400 |
commit | aa5346a2126ea65e8ef04eebea0f2481f701bdb8 (patch) | |
tree | a7d59e9cc61482d379baa676f9455c29529fa849 /include/linux/interrupt.h | |
parent | bf0df636e5ddf43cbacff8435962ee8aa40f563e (diff) |
provide stubs for enable_irq_wake() and disable_irq_wake()
Provide {enable,disable}_irq_wakeup dummies for undefined
cross-compilers for platforms without CONFIG_GENERIC_IRQ.
Needed by wake-up-from-a-serial-port.patch
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/interrupt.h')
-rw-r--r-- | include/linux/interrupt.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/interrupt.h b/include/linux/interrupt.h index 5523f19d88d2..8e5f289052a2 100644 --- a/include/linux/interrupt.h +++ b/include/linux/interrupt.h | |||
@@ -205,6 +205,15 @@ static inline int disable_irq_wake(unsigned int irq) | |||
205 | enable_irq(irq) | 205 | enable_irq(irq) |
206 | # endif | 206 | # endif |
207 | 207 | ||
208 | static inline int enable_irq_wake(unsigned int irq) | ||
209 | { | ||
210 | return 0; | ||
211 | } | ||
212 | |||
213 | static inline int disable_irq_wake(unsigned int irq) | ||
214 | { | ||
215 | return 0; | ||
216 | } | ||
208 | #endif /* CONFIG_GENERIC_HARDIRQS */ | 217 | #endif /* CONFIG_GENERIC_HARDIRQS */ |
209 | 218 | ||
210 | #ifndef __ARCH_SET_SOFTIRQ_PENDING | 219 | #ifndef __ARCH_SET_SOFTIRQ_PENDING |