Skip to content

Commit

Permalink
include/asm-x86/irqflags.h: checkpatch cleanups - formatting only
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Joe Perches authored and Ingo Molnar committed Apr 17, 2008
1 parent 3ff3522 commit cf7f719
Showing 1 changed file with 13 additions and 17 deletions.
30 changes: 13 additions & 17 deletions include/asm-x86/irqflags.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,21 @@ static inline unsigned long native_save_fl(void)
{
unsigned long flags;

__asm__ __volatile__(
"# __raw_save_flags\n\t"
"pushf ; pop %0"
: "=g" (flags)
: /* no input */
: "memory"
);
asm volatile("# __raw_save_flags\n\t"
"pushf ; pop %0"
: "=g" (flags)
: /* no input */
: "memory");

return flags;
}

static inline void native_restore_fl(unsigned long flags)
{
__asm__ __volatile__(
"push %0 ; popf"
: /* no output */
:"g" (flags)
:"memory", "cc"
);
asm volatile("push %0 ; popf"
: /* no output */
:"g" (flags)
:"memory", "cc");
}

static inline void native_irq_disable(void)
Expand Down Expand Up @@ -131,11 +127,11 @@ static inline unsigned long __raw_local_irq_save(void)
#endif /* CONFIG_PARAVIRT */

#ifndef __ASSEMBLY__
#define raw_local_save_flags(flags) \
do { (flags) = __raw_local_save_flags(); } while (0)
#define raw_local_save_flags(flags) \
do { (flags) = __raw_local_save_flags(); } while (0)

#define raw_local_irq_save(flags) \
do { (flags) = __raw_local_irq_save(); } while (0)
#define raw_local_irq_save(flags) \
do { (flags) = __raw_local_irq_save(); } while (0)

static inline int raw_irqs_disabled_flags(unsigned long flags)
{
Expand Down

0 comments on commit cf7f719

Please sign in to comment.