include/asm-x86/system.h: checkpatch cleanups - formatting only
Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
@@ -38,8 +38,7 @@ do { \
|
|||||||
*/ \
|
*/ \
|
||||||
unsigned long ebx, ecx, edx, esi, edi; \
|
unsigned long ebx, ecx, edx, esi, edi; \
|
||||||
\
|
\
|
||||||
asm volatile( \
|
asm volatile("pushfl\n\t" /* save flags */ \
|
||||||
"pushfl \n\t" /* save flags */ \
|
|
||||||
"pushl %%ebp\n\t" /* save EBP */ \
|
"pushl %%ebp\n\t" /* save EBP */ \
|
||||||
"movl %%esp,%[prev_sp]\n\t" /* save ESP */ \
|
"movl %%esp,%[prev_sp]\n\t" /* save ESP */ \
|
||||||
"movl %[next_sp],%%esp\n\t" /* restore ESP */ \
|
"movl %[next_sp],%%esp\n\t" /* restore ESP */ \
|
||||||
@@ -65,8 +64,7 @@ do { \
|
|||||||
\
|
\
|
||||||
/* regparm parameters for __switch_to(): */ \
|
/* regparm parameters for __switch_to(): */ \
|
||||||
[prev] "a" (prev), \
|
[prev] "a" (prev), \
|
||||||
[next] "d" (next) \
|
[next] "d" (next)); \
|
||||||
); \
|
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -167,8 +165,7 @@ extern void load_gs_index(unsigned);
|
|||||||
static inline unsigned long get_limit(unsigned long segment)
|
static inline unsigned long get_limit(unsigned long segment)
|
||||||
{
|
{
|
||||||
unsigned long __limit;
|
unsigned long __limit;
|
||||||
__asm__("lsll %1,%0"
|
asm("lsll %1,%0" : "=r" (__limit) : "r" (segment));
|
||||||
:"=r" (__limit):"r" (segment));
|
|
||||||
return __limit + 1;
|
return __limit + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -268,6 +265,7 @@ static inline void native_wbinvd(void)
|
|||||||
{
|
{
|
||||||
asm volatile("wbinvd": : :"memory");
|
asm volatile("wbinvd": : :"memory");
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_PARAVIRT
|
#ifdef CONFIG_PARAVIRT
|
||||||
#include <asm/paravirt.h>
|
#include <asm/paravirt.h>
|
||||||
#else
|
#else
|
||||||
@@ -300,7 +298,7 @@ static inline void clflush(volatile void *__p)
|
|||||||
asm volatile("clflush %0" : "+m" (*(volatile char __force *)__p));
|
asm volatile("clflush %0" : "+m" (*(volatile char __force *)__p));
|
||||||
}
|
}
|
||||||
|
|
||||||
#define nop() __asm__ __volatile__ ("nop")
|
#define nop() asm volatile ("nop")
|
||||||
|
|
||||||
void disable_hlt(void);
|
void disable_hlt(void);
|
||||||
void enable_hlt(void);
|
void enable_hlt(void);
|
||||||
|
Reference in New Issue
Block a user