[PATCH:intel-gpu-tools 6/7] Don't try to use CLOCK_MONOTONIC_COARSE on OS'es that don't support it
Alan Coopersmith
alan.coopersmith at oracle.com
Tue Dec 23 19:07:13 PST 2014
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
lib/igt_core.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/igt_core.c b/lib/igt_core.c
index 3670652..9944f48 100644
--- a/lib/igt_core.c
+++ b/lib/igt_core.c
@@ -267,7 +267,9 @@ static void gettime(struct timespec *ts)
{
memset(ts, 0, sizeof(*ts));
+#ifdef CLOCK_MONOTONIC_COARSE
if (clock_gettime(CLOCK_MONOTONIC_COARSE, ts))
+#endif
clock_gettime(CLOCK_MONOTONIC, ts);
}
--
1.7.9.2
More information about the xorg-devel
mailing list