Add Hygon SoC support to enable tsc_reliable feature
[fio.git] / arch / arch-x86_64.h
index e686d109e762998fbbfbf2c40d8d857ee2ce47ad..d49bcd7f34478f969f4975608624d14be6be8e94 100644 (file)
@@ -1,6 +1,13 @@
 #ifndef ARCH_X86_64_H
 #define ARCH_X86_64_H
 
+#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,
                            unsigned int *ecx, unsigned int *edx)
 {
@@ -10,7 +17,7 @@ static inline void do_cpuid(unsigned int *eax, unsigned int *ebx,
                : "memory");
 }
 
-#include "arch-x86-common.h"
+#include "arch-x86-common.h" /* IWYU pragma: export */
 
 #define FIO_ARCH       (arch_x86_64)
 
@@ -37,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"