projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2107ffe
)
gettime: only use CPU affinity if available
author
Jens Axboe
<axboe@fb.com>
Fri, 19 Dec 2014 22:03:15 +0000
(15:03 -0700)
committer
Jens 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
patch
|
blob
|
blame
|
history
diff --git
a/gettime-thread.c
b/gettime-thread.c
index 73632d0b35675510a9edd2a8c52cf0f15bec71e2..65ca83419d0f6f82ba5bab3c270ea81f1cd80c5c 100644
(file)
--- 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
}