Blame view
include/asm-sh/irqflags.h
710 Bytes
afbfb52e4
|
1 2 |
#ifndef __ASM_SH_IRQFLAGS_H #define __ASM_SH_IRQFLAGS_H |
f64ee8761
|
3 4 5 6 |
#ifdef CONFIG_SUPERH32 #include "irqflags_32.h" #else #include "irqflags_64.h" |
afbfb52e4
|
7 |
#endif |
afbfb52e4
|
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
#define raw_local_save_flags(flags) \ do { (flags) = __raw_local_save_flags(); } while (0) static inline int raw_irqs_disabled_flags(unsigned long flags) { return (flags != 0); } static inline int raw_irqs_disabled(void) { unsigned long flags = __raw_local_save_flags(); return raw_irqs_disabled_flags(flags); } |
afbfb52e4
|
23 24 25 26 27 28 29 30 31 32 |
#define raw_local_irq_save(flags) \ do { (flags) = __raw_local_irq_save(); } while (0) static inline void raw_local_irq_restore(unsigned long flags) { if ((flags & 0xf0) != 0xf0) raw_local_irq_enable(); } #endif /* __ASM_SH_IRQFLAGS_H */ |