1 #ifndef __UM_IRQFLAGS_H
2 #define __UM_IRQFLAGS_H
4 extern int get_signals(void);
5 extern int set_signals(int enable
);
6 extern void block_signals(void);
7 extern void unblock_signals(void);
9 static inline unsigned long arch_local_save_flags(void)
14 static inline void arch_local_irq_restore(unsigned long flags
)
19 static inline void arch_local_irq_enable(void)
24 static inline void arch_local_irq_disable(void)
29 static inline unsigned long arch_local_irq_save(void)
32 flags
= arch_local_save_flags();
33 arch_local_irq_disable();
37 static inline bool arch_irqs_disabled(void)
39 return arch_local_save_flags() == 0;