fix timestamps on architectures without CONFIG_KTIME_SCALAR
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 6 Sep 2012 14:26:38 +0000 (10:26 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 6 Sep 2012 14:27:50 +0000 (10:27 -0400)
commitad929ebecc25452e0524120316285f0974ac3899
tree2be8790207668dc25de43a2617b5be069c321eb4
parentcbb0f0f5203e9901084f38792e484f6fa988e10a
fix timestamps on architectures without CONFIG_KTIME_SCALAR

trace_clock_monotonic_wrapper() should return a u64 representing the
number of nanoseconds since system startup.
ktime_get() provides that value directly within its .tv64 field only
on those architectures defining CONFIG_KTIME_SCALAR, whereas in all
other cases (e.g. PowerPC) a ktime_to_ns() conversion (which
translates back to .tv64 when CONFIG_KTIME_SCALAR is defined)
becomes necessary.

Signed-off-by: Gerlando Falauto <gerlando.falauto@keymile.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
wrapper/trace-clock.h
This page took 0.025311 seconds and 4 git commands to generate.