X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=arch%2Farch-x86-common.h;h=87925bdc2de90f0843dd1d0468d833898c49910d;hp=c51c04c2d1b5f3a9958092ba05e468307e3cc42d;hb=01bf5128d0581e267383f280c6a1dcd26517240f;hpb=24575392bff8bdb9ec7709a78b4fbd48367fc1f5 diff --git a/arch/arch-x86-common.h b/arch/arch-x86-common.h index c51c04c2..87925bdc 100644 --- a/arch/arch-x86-common.h +++ b/arch/arch-x86-common.h @@ -3,6 +3,16 @@ #include +#ifndef __NR_sys_io_uring_setup +#define __NR_sys_io_uring_setup 425 +#endif +#ifndef __NR_sys_io_uring_enter +#define __NR_sys_io_uring_enter 426 +#endif +#ifndef __NR_sys_io_uring_register +#define __NR_sys_io_uring_register 427 +#endif + static inline void cpuid(unsigned int op, unsigned int *eax, unsigned int *ebx, unsigned int *ecx, unsigned int *edx) @@ -13,11 +23,12 @@ static inline void cpuid(unsigned int op, } #define ARCH_HAVE_INIT +#define ARCH_HAVE_IOURING extern bool tsc_reliable; extern int arch_random; -static inline void arch_init_intel(unsigned int level) +static inline void arch_init_intel(void) { unsigned int eax, ebx, ecx = 0, edx; @@ -44,7 +55,7 @@ static inline void arch_init_intel(unsigned int level) arch_random = (ecx & (1U << 30)) != 0; } -static inline void arch_init_amd(unsigned int level) +static inline void arch_init_amd(void) { unsigned int eax, ebx, ecx, edx; @@ -69,9 +80,9 @@ static inline void arch_init(char *envp[]) str[12] = '\0'; if (!strcmp(str, "GenuineIntel")) - arch_init_intel(level); - else if (!strcmp(str, "AuthenticAMD")) - arch_init_amd(level); + arch_init_intel(); + else if (!strcmp(str, "AuthenticAMD") || !strcmp(str, "HygonGenuine")) + arch_init_amd(); } #endif