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