X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=gettime.c;h=14462420219812266033a297d3c4d38f8fdc9006;hb=HEAD;hp=8993be1688c3073c01a16461c0d5b81fcb1df9bb;hpb=9e0ad34413bb1a4f4e02a62ed81d665130879bf1;p=fio.git diff --git a/gettime.c b/gettime.c index 8993be16..5ca31206 100644 --- a/gettime.c +++ b/gettime.c @@ -623,7 +623,7 @@ static void *clock_thread_fn(void *data) seq = *t->seq; if (seq == UINT_MAX) break; - __sync_synchronize(); + tsc_barrier(); tsc = get_cpu_clock(); } while (seq != atomic32_compare_and_swap(t->seq, seq, seq + 1)); @@ -671,7 +671,7 @@ static int clock_cmp(const void *p1, const void *p2) int fio_monotonic_clocktest(int debug) { struct clock_thread *cthreads; - unsigned int seen_cpus, nr_cpus = cpus_online(); + unsigned int seen_cpus, nr_cpus = cpus_configured(); struct clock_entry *entries; unsigned long nr_entries, tentries, failed = 0; struct clock_entry *prev, *this;