aboutsummaryrefslogtreecommitdiff
path: root/nptl/lowlevellock.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-02-22 18:30:52 +0100
committerFlorian Weimer <fweimer@redhat.com>2021-02-22 18:30:52 +0100
commit2f4019de81024cc0d05a5b5cedb1afb28b59a836 (patch)
treef837cbd8ac7933828e56baa291384b7b99edeb07 /nptl/lowlevellock.c
parent541e53c9ddd9ef543cc45b66c7597e63fa665414 (diff)
downloadglibc-2f4019de81024cc0d05a5b5cedb1afb28b59a836.tar
glibc-2f4019de81024cc0d05a5b5cedb1afb28b59a836.tar.gz
glibc-2f4019de81024cc0d05a5b5cedb1afb28b59a836.tar.bz2
glibc-2f4019de81024cc0d05a5b5cedb1afb28b59a836.zip
nptl: Move lowlevellock into libc [BZ #15648]
And export __lll_lock_wait and __lll_lock_wait_private as GLIBC_PRIVATE. This should eliminate the need for the previous riscv kludge.
Diffstat (limited to 'nptl/lowlevellock.c')
-rw-r--r--nptl/lowlevellock.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/nptl/lowlevellock.c b/nptl/lowlevellock.c
index 1ea397d5cb..7976c6d8f5 100644
--- a/nptl/lowlevellock.c
+++ b/nptl/lowlevellock.c
@@ -35,10 +35,8 @@ __lll_lock_wait_private (int *futex)
futex_wait ((unsigned int *) futex, 2, LLL_PRIVATE); /* Wait if *futex == 2. */
}
}
+libc_hidden_def (__lll_lock_wait_private)
-
-/* This function doesn't get included in libc. */
-#if IS_IN (libpthread)
void
__lll_lock_wait (int *futex, int private)
{
@@ -52,4 +50,4 @@ __lll_lock_wait (int *futex, int private)
futex_wait ((unsigned int *) futex, 2, private); /* Wait if *futex == 2. */
}
}
-#endif
+libc_hidden_def (__lll_lock_wait)