X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttng-events.c;h=61439ec7c788efa49b3a4c910fe2d9c0a2cf79d6;hb=a230fd6d07ab3c99a385f5b17ef0bfe055f47653;hp=aa0f2e2abc3fa9632f16353f374d5aa5bb2ad8dd;hpb=dfa12b2ee71e713596da79b49962098d716cef2b;p=lttng-modules.git diff --git a/lttng-events.c b/lttng-events.c index aa0f2e2a..61439ec7 100644 --- a/lttng-events.c +++ b/lttng-events.c @@ -42,7 +42,6 @@ #include #include #include -#include #define METADATA_CACHE_DEFAULT_SIZE 4096 @@ -2511,20 +2510,12 @@ int64_t measure_clock_offset(void) uint64_t tcf = trace_clock_freq(); int64_t offset; unsigned long flags; -#ifdef LTTNG_KERNEL_HAS_TIMESPEC64 struct timespec64 rts = { 0, 0 }; -#else - struct timespec rts = { 0, 0 }; -#endif /* Disable interrupts to increase correlation precision. */ local_irq_save(flags); monotonic[0] = trace_clock_read64(); -#ifdef LTTNG_KERNEL_HAS_TIMESPEC64 ktime_get_real_ts64(&rts); -#else - getnstimeofday(&rts); -#endif monotonic[1] = trace_clock_read64(); local_irq_restore(flags);