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 73632d0b35675510a9edd2a8c52cf0f15bec71e2..65ca83419d0f6f82ba5bab3c270ea81f1cd80c5c 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
 }