Module: xenomai-jki Branch: for-upstream Commit: fc7fd75eb8477ee7522a72e7810de458700476f6 URL: http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=fc7fd75eb8477ee7522a72e7810de458700476f6
Author: Jan Kiszka <[email protected]> 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 <[email protected]> --- 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 7232c48..0ebcfed 100644 --- a/src/skins/posix/clock.c +++ b/src/skins/posix/clock.c @@ -59,9 +59,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; cycle_t now, base, mask, cycle_delta; unsigned long mult, shift, nsec, rem; @@ -102,17 +102,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 [email protected] https://mail.gna.org/listinfo/xenomai-git
