X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=os%2Fos.h;h=becc41033e4a8c8db674abf78b2c9ed42f003c69;hb=bae743b1ed1fb245ace451f81baa0949def35814;hp=95ed7cf2d7cd169c173d9dd971db01ac6b9d734b;hpb=c473a9bd8fadf0b8e7521edcabb2204d87f35b04;p=fio.git 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