commit | d1be5f8f17b003c9dac72c21e5f1f48d59511415 | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@fb.com> | Fri Dec 19 15:04:10 2014 -0700 |
committer | Mohamad Ayyash <mkayyash@google.com> | Fri Mar 06 17:58:11 2015 -0800 |
tree | 83948bfbda566759ffbd074222b5e49cf76fc728 | |
parent | 32bbea4a86669b626ba96eef55c48ba3537b7c9b [diff] |
gettime: hide fio_gtod_cpumask if not used Signed-off-by: Jens Axboe <axboe@fb.com>
diff --git a/gettime-thread.c b/gettime-thread.c index 65ca834..2dc976f 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) {