aarch64: refactor HW ARM CRC32c detection
[fio.git] / os / os.h
diff --git a/os/os.h b/os/os.h
index 95ed7cf2d7cd169c173d9dd971db01ac6b9d734b..becc41033e4a8c8db674abf78b2c9ed42f003c69 100644 (file)
--- 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