#endif /* FIO_HAVE_FADVISE */
#ifndef FIO_HAVE_CPU_AFFINITY
-#define fio_setaffinity(td) (0)
-#define fio_getaffinity(pid, mask) do { } while(0)
+#define fio_setaffinity(pid, mask) (0)
+#define fio_getaffinity(pid, mask) do { } while (0)
+#define fio_cpu_clear(mask, cpu) do { } while (0)
+#define fio_cpuset_exit(mask) (-1)
#endif
#ifndef FIO_HAVE_IOPRIO
}
#endif
+#define FIO_DEF_CL_SIZE 128
+
+static inline int os_cache_line_size(void)
+{
+#ifdef FIO_HAVE_CL_SIZE
+ int ret = arch_cache_line_size();
+
+ if (ret <= 0)
+ return FIO_DEF_CL_SIZE;
+
+ return ret;
+#else
+ return FIO_DEF_CL_SIZE;
+#endif
+}
+
#endif