提交 cf7f7191 编写于 作者: J Joe Perches 提交者: Ingo Molnar

include/asm-x86/irqflags.h: checkpatch cleanups - formatting only

Signed-off-by: NJoe Perches <joe@perches.com>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 3ff35224
...@@ -12,25 +12,21 @@ static inline unsigned long native_save_fl(void) ...@@ -12,25 +12,21 @@ static inline unsigned long native_save_fl(void)
{ {
unsigned long flags; unsigned long flags;
__asm__ __volatile__( asm volatile("# __raw_save_flags\n\t"
"# __raw_save_flags\n\t" "pushf ; pop %0"
"pushf ; pop %0" : "=g" (flags)
: "=g" (flags) : /* no input */
: /* no input */ : "memory");
: "memory"
);
return flags; return flags;
} }
static inline void native_restore_fl(unsigned long flags) static inline void native_restore_fl(unsigned long flags)
{ {
__asm__ __volatile__( asm volatile("push %0 ; popf"
"push %0 ; popf" : /* no output */
: /* no output */ :"g" (flags)
:"g" (flags) :"memory", "cc");
:"memory", "cc"
);
} }
static inline void native_irq_disable(void) static inline void native_irq_disable(void)
...@@ -131,11 +127,11 @@ static inline unsigned long __raw_local_irq_save(void) ...@@ -131,11 +127,11 @@ static inline unsigned long __raw_local_irq_save(void)
#endif /* CONFIG_PARAVIRT */ #endif /* CONFIG_PARAVIRT */
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
#define raw_local_save_flags(flags) \ #define raw_local_save_flags(flags) \
do { (flags) = __raw_local_save_flags(); } while (0) do { (flags) = __raw_local_save_flags(); } while (0)
#define raw_local_irq_save(flags) \ #define raw_local_irq_save(flags) \
do { (flags) = __raw_local_irq_save(); } while (0) do { (flags) = __raw_local_irq_save(); } while (0)
static inline int raw_irqs_disabled_flags(unsigned long flags) static inline int raw_irqs_disabled_flags(unsigned long flags)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册