X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-x86_64%2Fmach-xen%2Fasm%2Fprocessor.h;h=1312075712e2329ad39043e4d2320b6ed4eb30c9;hb=refs%2Fheads%2Fvserver;hp=be43d34cf4dc61f5adffb41864efa7670129e2fb;hpb=76828883507a47dae78837ab5dec5a5b4513c667;p=linux-2.6.git diff --git a/include/asm-x86_64/mach-xen/asm/processor.h b/include/asm-x86_64/mach-xen/asm/processor.h index be43d34cf..131207571 100644 --- a/include/asm-x86_64/mach-xen/asm/processor.h +++ b/include/asm-x86_64/mach-xen/asm/processor.h @@ -167,12 +167,6 @@ static inline void clear_in_cr4 (unsigned long mask) } -/* - * Bus types - */ -#define MCA_bus 0 -#define MCA_bus__is_a_macro - /* * User space process size. 47bits minus one guard page. */ @@ -485,6 +479,16 @@ static inline void __mwait(unsigned long eax, unsigned long ecx) : :"a" (eax), "c" (ecx)); } +static inline void __sti_mwait(unsigned long eax, unsigned long ecx) +{ + /* "mwait %eax,%ecx;" */ + asm volatile( + "sti; .byte 0x0f,0x01,0xc9;" + : :"a" (eax), "c" (ecx)); +} + +extern void mwait_idle_with_hints(unsigned long eax, unsigned long ecx); + #define stack_current() \ ({ \ struct thread_info *ti; \