summaryrefslogtreecommitdiff
path: root/os/os.h
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2008-12-08 14:10:52 +0100
committerJens Axboe <jens.axboe@oracle.com>2008-12-08 14:10:52 +0100
commitbe4ecfdf6c8daa75c4df8ac875c9a87da80d81a0 (patch)
treeeb09e70227a2231e8d13f436ec6cd0be0916e920 /os/os.h
parent43c129b4ff85a7f7f7e0929f9dd73e756e37a2e3 (diff)
downloadfio-be4ecfdf6c8daa75c4df8ac875c9a87da80d81a0.tar.gz
fio-be4ecfdf6c8daa75c4df8ac875c9a87da80d81a0.tar.bz2
Add gtod_cpu option for pinning gettimeofday() to a single CPU
Similar to what real life products sometimes do, offload gettimeofday() calls to a single CPU and have that update the current time into a shared memory location. This option pins a specific CPU for that job, and excludes it from participating in any of the IO jobs. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'os/os.h')
-rw-r--r--os/os.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/os/os.h b/os/os.h
index 1cff4945..823b039a 100644
--- a/os/os.h
+++ b/os/os.h
@@ -40,7 +40,8 @@
#ifndef FIO_HAVE_CPU_AFFINITY
#define fio_setaffinity(td) (0)
-#define fio_getaffinity(pid, mask) do { } while(0)
+#define fio_getaffinity(pid, mask) do { } while (0)
+#define fio_cpu_clear(mask, cpu) do { } while (0)
#endif
#ifndef FIO_HAVE_IOPRIO