replace 'fill_pattern' with 'cpy_pattern' from 'lib/pattern.c'
[fio.git] / gettime-thread.c
index 73632d0b35675510a9edd2a8c52cf0f15bec71e2..9bf85f0212725556e59609223d66cf0f2eba3618 100644 (file)
@@ -8,8 +8,8 @@
 
 struct timeval *fio_tv = NULL;
 int fio_gtod_offload = 0;
-static os_cpu_mask_t fio_gtod_cpumask;
 static pthread_t gtod_thread;
+static os_cpu_mask_t fio_gtod_cpumask;
 
 void fio_gtod_init(void)
 {
@@ -95,5 +95,7 @@ err:
 
 void fio_gtod_set_cpu(unsigned int cpu)
 {
+#ifdef FIO_HAVE_CPU_AFFINITY
        fio_cpu_set(&fio_gtod_cpumask, cpu);
+#endif
 }