X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=os%2Fos.h;h=becc41033e4a8c8db674abf78b2c9ed42f003c69;hp=95ed7cf2d7cd169c173d9dd971db01ac6b9d734b;hb=58828d0759642a8d438c94ee96a3e9848f89102a;hpb=5457259f57c651d41f6cb5ee4a7af49ff05a9aed diff --git a/os/os.h b/os/os.h index 95ed7cf2..becc4103 100644 --- a/os/os.h +++ b/os/os.h @@ -27,6 +27,10 @@ enum { os_nr, }; +typedef enum { + CPU_ARM64_CRC32C, +} cpu_features; + /* IWYU pragma: begin_exports */ #if defined(__ANDROID__) #include "os-android.h" @@ -387,4 +391,11 @@ static inline bool fio_fallocate(struct fio_file *f, uint64_t offset, uint64_t l # define FIO_HAVE_ANY_FALLOCATE #endif +#ifndef FIO_HAVE_CPU_HAS +static inline bool os_cpu_has(cpu_features feature) +{ + return false; +} +#endif + #endif