x86: implement support to synchronize RDTSC through MFENCE on AMD CPUs
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / include / asm-x86 / cpufeature.h
index 75e2f78a7fdaf758494bee2977b8154ee31bf3a3..7d53eea8b9462e6c7b44fc0a15240ca00dddf01a 100644 (file)
@@ -79,6 +79,7 @@
 /* 14 free */
 #define X86_FEATURE_SYNC_RDTSC (3*32+15)  /* RDTSC synchronizes the CPU */
 #define X86_FEATURE_REP_GOOD   (3*32+16) /* rep microcode works well on this CPU */
+#define X86_FEATURE_MFENCE_RDTSC (3*32+17) /* Mfence synchronizes RDTSC */
 
 /* Intel-defined CPU features, CPUID level 0x00000001 (ecx), word 4 */
 #define X86_FEATURE_XMM3       (4*32+ 0) /* Streaming SIMD Extensions-3 */