diff options
Diffstat (limited to 'include/linux/interrupt.h')
-rw-r--r-- | include/linux/interrupt.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/interrupt.h b/include/linux/interrupt.h index f7b01b9a35b3..5323f6275854 100644 --- a/include/linux/interrupt.h +++ b/include/linux/interrupt.h | |||
@@ -241,6 +241,16 @@ static inline void __deprecated save_and_cli(unsigned long *x) | |||
241 | #define save_and_cli(x) save_and_cli(&x) | 241 | #define save_and_cli(x) save_and_cli(&x) |
242 | #endif /* CONFIG_SMP */ | 242 | #endif /* CONFIG_SMP */ |
243 | 243 | ||
244 | /* Some architectures might implement lazy enabling/disabling of | ||
245 | * interrupts. In some cases, such as stop_machine, we might want | ||
246 | * to ensure that after a local_irq_disable(), interrupts have | ||
247 | * really been disabled in hardware. Such architectures need to | ||
248 | * implement the following hook. | ||
249 | */ | ||
250 | #ifndef hard_irq_disable | ||
251 | #define hard_irq_disable() do { } while(0) | ||
252 | #endif | ||
253 | |||
244 | /* PLEASE, avoid to allocate new softirqs, if you need not _really_ high | 254 | /* PLEASE, avoid to allocate new softirqs, if you need not _really_ high |
245 | frequency threaded job scheduling. For almost all the purposes | 255 | frequency threaded job scheduling. For almost all the purposes |
246 | tasklets are more than enough. F.e. all serial device BHs et | 256 | tasklets are more than enough. F.e. all serial device BHs et |