summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2014-12-19 15:04:10 -0700
committerJens Axboe <axboe@fb.com>2014-12-19 15:04:10 -0700
commit8a2b393b00dc4b6a8ba129a0e7850a78114ac75e (patch)
tree7453134726d6f2c577f5935d3fd95371b2a644c4
parent2a2f27b866dea76316f36baa0e318e6f06b99738 (diff)
downloadfio-8a2b393b00dc4b6a8ba129a0e7850a78114ac75e.tar.gz
fio-8a2b393b00dc4b6a8ba129a0e7850a78114ac75e.tar.bz2
gettime: hide fio_gtod_cpumask if not used
Signed-off-by: Jens Axboe <axboe@fb.com>
-rw-r--r--gettime-thread.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gettime-thread.c b/gettime-thread.c
index 65ca8341..2dc976fb 100644
--- a/gettime-thread.c
+++ b/gettime-thread.c
@@ -8,8 +8,10 @@
struct timeval *fio_tv = NULL;
int fio_gtod_offload = 0;
-static os_cpu_mask_t fio_gtod_cpumask;
static pthread_t gtod_thread;
+#ifdef FIO_HAVE_CPU_AFFINITY
+static os_cpu_mask_t fio_gtod_cpumask;
+#endif
void fio_gtod_init(void)
{