cxgb4/l2t: Mark expected switch fall-through
[linux/fpc-iii.git] / arch / um / include / asm / irqflags.h
blobcbc6c0013a644521cd1b8c099626f1a1c9284f94
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __UM_IRQFLAGS_H
3 #define __UM_IRQFLAGS_H
5 extern int get_signals(void);
6 extern int set_signals(int enable);
7 extern void block_signals(void);
8 extern void unblock_signals(void);
10 #define arch_local_save_flags arch_local_save_flags
11 static inline unsigned long arch_local_save_flags(void)
13 return get_signals();
16 #define arch_local_irq_restore arch_local_irq_restore
17 static inline void arch_local_irq_restore(unsigned long flags)
19 set_signals(flags);
22 #define arch_local_irq_enable arch_local_irq_enable
23 static inline void arch_local_irq_enable(void)
25 unblock_signals();
28 #define arch_local_irq_disable arch_local_irq_disable
29 static inline void arch_local_irq_disable(void)
31 block_signals();
34 #define ARCH_IRQ_DISABLED 0
35 #define ARCh_IRQ_ENABLED (SIGIO|SIGVTALRM)
37 #include <asm-generic/irqflags.h>
39 #endif