From 5a664d7ae8e42d641a7b4b436987ff67ab483b08 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Tue, 23 Feb 2021 14:59:34 +0100 Subject: nptl: Move elision implementations into libc The elision interfaces are closely aligned between the targets that implement them, so declare them in the generic file. Empty .c stubs are provided, so that fewer makefile updates under sysdeps are needed. Also simplify initialization via __libc_early_init. The symbols __lll_clocklock_elision, __lll_lock_elision, __lll_trylock_elision, __lll_unlock_elision, __pthread_force_elision move into libc. For the time being, non-hidden references are used from libpthread to access them, but once that part of libpthread is moved into libc, hidden symbols will be used again. (Hidden references seem desirable to reduce the likelihood of transactions aborts.) --- sysdeps/unix/sysv/linux/s390/elision-unlock.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sysdeps/unix/sysv/linux/s390/elision-unlock.c') diff --git a/sysdeps/unix/sysv/linux/s390/elision-unlock.c b/sysdeps/unix/sysv/linux/s390/elision-unlock.c index 5ac6758df2..87a5bd7cbf 100644 --- a/sysdeps/unix/sysv/linux/s390/elision-unlock.c +++ b/sysdeps/unix/sysv/linux/s390/elision-unlock.c @@ -59,3 +59,4 @@ __lll_unlock_elision(int *futex, short *adapt_count, int private) } return 0; } +libc_hidden_def (__lll_unlock_elision) -- cgit 1.4.1