projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'enable-dataplacement-while-replaying-io' of https://github.com/parkvibe...
[fio.git]
/
gettime.c
diff --git
a/gettime.c
b/gettime.c
index 8993be1688c3073c01a16461c0d5b81fcb1df9bb..5ca3120633dd409c669da255dd7e422258b3021d 100644
(file)
--- 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;
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));
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;
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;
struct clock_entry *entries;
unsigned long nr_entries, tentries, failed = 0;
struct clock_entry *prev, *this;