From: Jens Axboe Date: Fri, 19 Dec 2014 22:03:15 +0000 (-0700) Subject: gettime: only use CPU affinity if available X-Git-Tag: fio-2.2.2~3 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=2a2f27b866dea76316f36baa0e318e6f06b99738 gettime: only use CPU affinity if available Signed-off-by: Jens Axboe --- 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 }