summaryrefslogtreecommitdiff
path: root/nptl/pthread_condattr_setclock.c
diff options
context:
space:
mode:
authorMike Crowe <mac@mcrowe.com>2019-06-24 20:18:00 +0000
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2019-07-02 14:12:29 -0300
commita53662bcb25094bfb79507585af8972f3b6d789f (patch)
tree8aa7bbad65b4ab42dfda0581c2d48d482f6eaaf6 /nptl/pthread_condattr_setclock.c
parent6df32fd016ae8d6e39fbbc3a7fa40b1b608142a3 (diff)
downloadglibc-a53662bcb25094bfb79507585af8972f3b6d789f.tar.gz
nptl: Remove futex_supports_exact_relative_timeoutsazanella/master-posix_clock
The only implementation of futex_supports_exact_relative_timeouts always returns true. Let's remove it and all its callers. * nptl/pthread_cond_wait.c: (__pthread_cond_clockwait): Remove code that is only useful if futex_supports_exact_relative_timeouts () returns false. * nptl/pthread_condattr_setclock.c: (pthread_condattr_setclock): Likewise. * sysdeps/nptl/futex-internal.h: Remove comment about relative timeouts potentially being imprecise since it's no longer true. Remove declaration of futex_supports_exact_relative_timeouts. * sysdeps/unix/sysv/linux/futex-internal.h: Remove implementation of futex_supports_exact_relative_timeouts. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'nptl/pthread_condattr_setclock.c')
-rw-r--r--nptl/pthread_condattr_setclock.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/nptl/pthread_condattr_setclock.c b/nptl/pthread_condattr_setclock.c
index 641a041fca..ac91923522 100644
--- a/nptl/pthread_condattr_setclock.c
+++ b/nptl/pthread_condattr_setclock.c
@@ -33,11 +33,6 @@ pthread_condattr_setclock (pthread_condattr_t *attr, clockid_t clock_id)
in the pthread_cond_t structure needs to be adjusted. */
return EINVAL;
- /* If we do not support waiting using CLOCK_MONOTONIC, return an error. */
- if (clock_id == CLOCK_MONOTONIC
- && !futex_supports_exact_relative_timeouts())
- return ENOTSUP;
-
/* Make sure the value fits in the bits we reserved. */
assert (clock_id < (1 << COND_CLOCK_BITS));