Module: xenomai-jki
Branch: for-upstream
Commit: b071c519b586ba28bcd934d95169bee4e276f16e
URL:    
http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=b071c519b586ba28bcd934d95169bee4e276f16e

Author: Jan Kiszka <jan.kis...@siemens.com>
Date:   Sat Oct  9 12:33:13 2010 +0200

posix: Cleanup CLOCK_HOST_REALTIME

__do_clock_host_realtime is now only called under
XNARCH_HAVE_NONPRIV_TSC.

Signed-off-by: Jan Kiszka <jan.kis...@siemens.com>

---

 src/skins/posix/clock.c |   15 +++------------
 1 files changed, 3 insertions(+), 12 deletions(-)

diff --git a/src/skins/posix/clock.c b/src/skins/posix/clock.c
index 4f2171b..bfdfe72 100644
--- a/src/skins/posix/clock.c
+++ b/src/skins/posix/clock.c
@@ -58,9 +58,9 @@ int __wrap_clock_getres(clockid_t clock_id, struct timespec 
*tp)
        return -1;
 }
 
-int __do_clock_host_realtime(struct timespec *ts, void *tzp)
-{
 #ifdef XNARCH_HAVE_NONPRIV_TSC
+static int __do_clock_host_realtime(struct timespec *ts, void *tzp)
+{
        unsigned int seq;
        unsigned long long now, base, mask, cycle_delta;
        unsigned long mult, shift, nsec, rem;
@@ -101,17 +101,8 @@ retry:
        ts->tv_nsec = rem;
 
        return 0;
-#else /* XNARCH_HAVE_NONPRIV_TSC */
-       int err = -XENOMAI_SKINCALL2(__pse51_muxid,
-                                    __pse51_clock_gettime,
-                                    CLOCK_HOST_REALTIME, ts);
-       if (!err)
-               return 0;
-
-       errno = err;
-       return -1;
-#endif /* XNARCH_HAVE_NONPRIV_TSC */
 }
+#endif /* XNARCH_HAVE_NONPRIV_TSC */
 
 int __wrap_clock_gettime(clockid_t clock_id, struct timespec *tp)
 {


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to