From 2a2f27b866dea76316f36baa0e318e6f06b99738 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Fri, 19 Dec 2014 15:03:15 -0700 Subject: [PATCH] gettime: only use CPU affinity if available Signed-off-by: Jens Axboe --- gettime-thread.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gettime-thread.c b/gettime-thread.c index 73632d0b..65ca8341 100644 --- a/gettime-thread.c +++ b/gettime-thread.c @@ -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 } -- 2.25.1