diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2020-11-23 10:13:42 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2020-11-25 10:43:18 -0300 |
commit | 878fe624d44b8f6489b2d0de9bfdc09290a719a7 (patch) | |
tree | f618891604fc8a95a0ba87b34e3114eebcc21186 /nptl/lowlevellock.c | |
parent | 5289cec4b8812ffe7998df81b74be8ef6e563b5f (diff) | |
download | glibc-878fe624d44b8f6489b2d0de9bfdc09290a719a7.tar.gz glibc-878fe624d44b8f6489b2d0de9bfdc09290a719a7.tar.xz glibc-878fe624d44b8f6489b2d0de9bfdc09290a719a7.zip |
nptl: Replace lll_futex_{timed_}wait by futex-internal.h
The idea is to make NPTL implementation to use on the functions provided by futex-internal.h. Checked on x86_64-linux-gnu and i686-linux-gnu. Reviewed-by: Lukasz Majewski <lukma@denx.de>
Diffstat (limited to 'nptl/lowlevellock.c')
-rw-r--r-- | nptl/lowlevellock.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nptl/lowlevellock.c b/nptl/lowlevellock.c index f69547a235..973df4d03a 100644 --- a/nptl/lowlevellock.c +++ b/nptl/lowlevellock.c @@ -18,7 +18,7 @@ <https://www.gnu.org/licenses/>. */ #include <sysdep.h> -#include <lowlevellock.h> +#include <futex-internal.h> #include <atomic.h> #include <stap-probe.h> @@ -32,7 +32,7 @@ __lll_lock_wait_private (int *futex) { futex: LIBC_PROBE (lll_lock_wait_private, 1, futex); - lll_futex_wait (futex, 2, LLL_PRIVATE); /* Wait if *futex == 2. */ + futex_wait ((unsigned int *) futex, 2, LLL_PRIVATE); /* Wait if *futex == 2. */ } } @@ -49,7 +49,7 @@ __lll_lock_wait (int *futex, int private) { futex: LIBC_PROBE (lll_lock_wait, 1, futex); - lll_futex_wait (futex, 2, private); /* Wait if *futex == 2. */ + futex_wait ((unsigned int *) futex, 2, private); /* Wait if *futex == 2. */ } } #endif |