blk: rq_data_dir() should not return a boolean
[cris-mirror.git] / arch / um / include / asm / irqflags.h
blobc780d8a1677351ab99cd4bdf643e5d363ac4e9e5
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)
11 return get_signals();
14 static inline void arch_local_irq_restore(unsigned long flags)
16 set_signals(flags);
19 static inline void arch_local_irq_enable(void)
21 unblock_signals();
24 static inline void arch_local_irq_disable(void)
26 block_signals();
29 static inline unsigned long arch_local_irq_save(void)
31 unsigned long flags;
32 flags = arch_local_save_flags();
33 arch_local_irq_disable();
34 return flags;
37 static inline bool arch_irqs_disabled(void)
39 return arch_local_save_flags() == 0;
42 #endif