7 #include "lib/seqlock.h"
19 extern int fio_get_mono_time(struct timespec *);
20 extern void fio_gettime(struct timespec *, void *);
21 extern void fio_gtod_init(void);
22 extern void fio_clock_init(void);
23 extern int fio_start_gtod_thread(void);
24 extern int fio_monotonic_clocktest(int debug);
25 extern void fio_local_clock_init(void);
27 extern struct fio_ts {
28 struct seqlock seqlock;
32 static inline int fio_gettime_offload(struct timespec *ts)
40 seq = read_seqlock_begin(&fio_ts->seqlock);
42 } while (read_seqlock_retry(&fio_ts->seqlock, seq));
47 extern void fio_gtod_set_cpu(unsigned int cpu);