Add Hygon SoC support to enable tsc_reliable feature
[fio.git] / arch / arch-x86_64.h
index 6361d52f6482ac0e3e2d32f9e754f8ac6d61448d..d49bcd7f34478f969f4975608624d14be6be8e94 100644 (file)
@@ -1,8 +1,11 @@
 #ifndef ARCH_X86_64_H
 #define ARCH_X86_64_H
 
-#ifndef __NR_sys_iosetup2
-#define __NR_sys_iosetup2      335
+#ifndef __NR_sys_io_setup2
+#define __NR_sys_io_setup2     335
+#endif
+#ifndef __NR_sys_io_ring_enter
+#define __NR_sys_io_ring_enter 336
 #endif
 
 static inline void do_cpuid(unsigned int *eax, unsigned int *ebx,
@@ -41,6 +44,7 @@ static inline unsigned long long get_cpu_clock(void)
 #define ARCH_HAVE_FFZ
 #define ARCH_HAVE_SSE4_2
 #define ARCH_HAVE_CPU_CLOCK
+#define ARCH_HAVE_AIORING
 
 #define RDRAND_LONG    ".byte 0x48,0x0f,0xc7,0xf0"
 #define RDSEED_LONG    ".byte 0x48,0x0f,0xc7,0xf8"