diff options
author | Andi Kleen <ak@suse.de> | 2007-05-02 13:27:10 -0400 |
---|---|---|
committer | Andi Kleen <andi@basil.nowhere.org> | 2007-05-02 13:27:10 -0400 |
commit | b4531e863dbd06b5d336afefdb37483b690dea59 (patch) | |
tree | 31d481e2b1b9727b6ee180ce876b73fbc0983a15 /include/asm-i386/irqflags.h | |
parent | 78eea47ac3e256559d97f0c2434928be39cba524 (diff) |
[PATCH] i386: Use X86_EFLAGS_IF in irqflags.h.
Move X86_EFLAGS_IF et al out to a new header: processor-flags.h, so we
can include it from irqflags.h and use it in raw_irqs_disabled_flags().
As a side-effect, we could now use these flags in .S files.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Andi Kleen <ak@suse.de>
Diffstat (limited to 'include/asm-i386/irqflags.h')
-rw-r--r-- | include/asm-i386/irqflags.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/asm-i386/irqflags.h b/include/asm-i386/irqflags.h index c1cdd094938e..eff8585cb741 100644 --- a/include/asm-i386/irqflags.h +++ b/include/asm-i386/irqflags.h | |||
@@ -9,6 +9,7 @@ | |||
9 | */ | 9 | */ |
10 | #ifndef _ASM_IRQFLAGS_H | 10 | #ifndef _ASM_IRQFLAGS_H |
11 | #define _ASM_IRQFLAGS_H | 11 | #define _ASM_IRQFLAGS_H |
12 | #include <asm/processor-flags.h> | ||
12 | 13 | ||
13 | #ifndef __ASSEMBLY__ | 14 | #ifndef __ASSEMBLY__ |
14 | static inline unsigned long native_save_fl(void) | 15 | static inline unsigned long native_save_fl(void) |
@@ -119,7 +120,7 @@ static inline unsigned long __raw_local_irq_save(void) | |||
119 | 120 | ||
120 | static inline int raw_irqs_disabled_flags(unsigned long flags) | 121 | static inline int raw_irqs_disabled_flags(unsigned long flags) |
121 | { | 122 | { |
122 | return !(flags & (1 << 9)); | 123 | return !(flags & X86_EFLAGS_IF); |
123 | } | 124 | } |
124 | 125 | ||
125 | static inline int raw_irqs_disabled(void) | 126 | static inline int raw_irqs_disabled(void) |