]> git.lttng.org Git - ust.git/commitdiff
Remove trace clock warning on non x86 systems
authorMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Mon, 14 Feb 2011 16:54:45 +0000 (11:54 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Mon, 14 Feb 2011 16:54:45 +0000 (11:54 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/ust/clock.h

index 5e558f8e767a44c21d34e9d90161e504fe7540b3..22d2efc65c9666905ff896d0fac4c89a8bbd2462 100644 (file)
@@ -74,20 +74,24 @@ static __inline__ u64 trace_clock_read64(void)
        return retval;
 }
 
-
+#if __i386__ || __x86_64__
 static __inline__ u64 trace_clock_frequency(void)
 {
        struct timespec ts;
        union lttng_timespec *lts = (union lttng_timespec *) &ts;
 
-#if __i386__ || __x86_64__
        if (likely(ust_clock_source == CLOCK_TRACE)) {
                clock_gettime(CLOCK_TRACE_FREQ, &ts);
                return lts->lttng_ts;
        }
-#endif
        return 1000000000LL;
 }
+#else /* #if __i386__ || __x86_64__ */
+static __inline__ u64 trace_clock_frequency(void)
+{
+       return 1000000000LL;
+}
+#endif /* #else #if __i386__ || __x86_64__ */
 
 static __inline__ u32 trace_clock_freq_scale(void)
 {
This page took 0.028329 seconds and 4 git commands to generate.