gettime: only use CPU affinity if available
authorJens Axboe <axboe@fb.com>
Fri, 19 Dec 2014 22:03:15 +0000 (15:03 -0700)
committerJens Axboe <axboe@fb.com>
Fri, 19 Dec 2014 22:03:15 +0000 (15:03 -0700)
Signed-off-by: Jens Axboe <axboe@fb.com>
gettime-thread.c

index 73632d0..65ca834 100644 (file)
@@ -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
 }