| * This file gets included from lowlevel asm headers too, to provide |
| * wrapped versions of the local_irq_*() APIs, based on the |
| * raw_local_irq_*() functions from the lowlevel headers. |
| static inline unsigned long __raw_local_save_flags(void) |
| #define raw_local_save_flags(flags) \ |
| do { (flags) = __raw_local_save_flags(); } while (0) |
| static inline void raw_local_irq_restore(unsigned long flags) |
| static inline void raw_local_irq_disable(void) |
| static inline void raw_local_irq_enable(void) |
| static inline int raw_irqs_disabled_flags(unsigned long flags) |
| static inline int raw_irqs_disabled(void) |
| unsigned long flags = __raw_local_save_flags(); |
| return raw_irqs_disabled_flags(flags); |
| static inline unsigned long __raw_local_irq_save(void) |
| unsigned long flags = __raw_local_save_flags(); |
| #define raw_local_irq_save(flags) \ |
| do { (flags) = __raw_local_irq_save(); } while (0) |
| #endif /* (__ASSEMBLY__) */ |
| #endif /* !(_ASM_IRQFLAGS_H) */ |