[pocl] 02/03: use CLOCK_UPTIME_FAST on kFreeBSD
Andreas Beckmann
anbe at moszumanska.debian.org
Sun Jul 3 19:36:33 UTC 2016
This is an automated email from the git hooks/post-receive script.
anbe pushed a commit to branch master
in repository pocl.
commit 386d10bda722efec195b0363781bcd13fdd05795
Author: Andreas Beckmann <anbe at debian.org>
Date: Sun Jul 3 16:15:58 2016 +0200
use CLOCK_UPTIME_FAST on kFreeBSD
---
debian/changelog | 1 +
debian/patches/os-compat.patch | 15 +++++++++++++++
2 files changed, 16 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 7a6d6e3..63827b3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,6 @@
pocl (0.13-4) UNRELEASED; urgency=medium
+ * Use CLOCK_UPTIME_FAST on kFreeBSD.
* Update symbols files.
-- Andreas Beckmann <anbe at debian.org> Sun, 03 Jul 2016 16:02:43 +0200
diff --git a/debian/patches/os-compat.patch b/debian/patches/os-compat.patch
index a935b29..0cf3380 100644
--- a/debian/patches/os-compat.patch
+++ b/debian/patches/os-compat.patch
@@ -11,3 +11,18 @@ Description: Fix includes for FreeBSD and GNU/Hurd
#include <alloca.h>
-#include <emmintrin.h>
+--- a/lib/CL/pocl_timing.c
++++ b/lib/CL/pocl_timing.c
+@@ -67,10 +67,10 @@ uint64_t pocl_gettimemono_ns() {
+ struct timespec timespec;
+ # ifdef __linux__
+ clock_gettime(CLOCK_MONOTONIC_RAW, ×pec);
+-# elif defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
++# elif defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD_kernel__)
+ clock_gettime(CLOCK_UPTIME_FAST, ×pec);
+ # else
+-# warn Using clock_gettime with CLOCK_REALTIME for monotonic clocks
++# warning Using clock_gettime with CLOCK_REALTIME for monotonic clocks
+ clock_gettime(CLOCK_REALTIME, ×pec);
+ # endif
+ return ((timespec.tv_sec * 1000000000UL) + timespec.tv_nsec);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/pocl.git
More information about the Pkg-opencl-commits
mailing list