X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;ds=sidebyside;f=gettime.c;h=9e5457e0c95a06a0a32930482f92427122d6829d;hb=2c3e17be4c7c9a737317ada414b98929652fec15;hp=a14a179bd14e49bc47e5fdb0f118a40ac7edbe0e;hpb=22bcb265833f263facd58bcef3d8a159c554460e;p=fio.git diff --git a/gettime.c b/gettime.c index a14a179b..9e5457e0 100644 --- a/gettime.c +++ b/gettime.c @@ -28,7 +28,7 @@ static unsigned int max_cycles_shift; static unsigned int cycles_wrap; #endif #endif -int tsc_reliable = 0; +bool tsc_reliable = false; struct tv_valid { int warned; @@ -413,7 +413,7 @@ void fio_clock_init(void) fio_clock_source_inited = fio_clock_source; if (calibrate_cpu_clock()) - tsc_reliable = 0; + tsc_reliable = false; /* * If the arch sets tsc_reliable != 0, then it must be good enough @@ -542,7 +542,7 @@ uint64_t time_since_now(const struct timespec *s) defined(CONFIG_SFAA) #define CLOCK_ENTRIES_DEBUG 100000 -#define CLOCK_ENTRIES_TEST 10000 +#define CLOCK_ENTRIES_TEST 1000 struct clock_entry { uint32_t seq;