commit | 16de1bf91ca80e62ce257a24cae471fab140bbe0 | [log] [tgz] |
---|---|---|
author | Bruce Cran <bruce@cran.org.uk> | Mon Feb 20 17:07:32 2012 +0000 |
committer | Jens Axboe <axboe@kernel.dk> | Mon Feb 20 19:33:30 2012 +0100 |
tree | c494dd6ddb27d8e6e6341aac1523168746b7bae1 | |
parent | b9fd788f0e8adacc33316107594e9eb0463743d7 [diff] [blame] |
Add FIO_PREFERRED_CLOCK_SOURCE to allow selection of clock source on a per-platform basis. Signed-off-by: Jens Axboe <axboe@kernel.dk>
diff --git a/os/os.h b/os/os.h index cbb476f..c10cb12 100644 --- a/os/os.h +++ b/os/os.h
@@ -129,6 +129,10 @@ #define FIO_OS_PATH_SEPARATOR "/" #endif +#ifndef FIO_PREFERRED_CLOCK_SOURCE +#define FIO_PREFERRED_CLOCK_SOURCE CS_CGETTIME +#endif + #ifndef FIO_MAX_JOBS #define FIO_MAX_JOBS 2048 #endif