1 #ifndef __ASM_X86_MWAIT_H__
2 #define __ASM_X86_MWAIT_H__
3 
4 #define MWAIT_SUBSTATE_MASK		0xf
5 #define MWAIT_CSTATE_MASK		0xf
6 #define MWAIT_SUBSTATE_SIZE		4
7 
8 #define CPUID_MWAIT_LEAF		5
9 #define CPUID5_ECX_EXTENSIONS_SUPPORTED 0x1
10 #define CPUID5_ECX_INTERRUPT_BREAK	0x2
11 
12 #define MWAIT_ECX_INTERRUPT_BREAK	0x1
13 
14 void mwait_idle_with_hints(unsigned int eax, unsigned int ecx);
15 
16 #endif /* __ASM_X86_MWAIT_H__ */
17