glibc/sysdeps/unix/sysv/linux/x86
Adhemerval Zanella c50e1c263e x86: Remove arch-specific low level lock implementation
This patch removes the arch-specific x86 assembly implementation for
low level locking and consolidate both 64 bits and 32 bits in a
single implementation.

Different than other architectures, x86 lll_trylock, lll_lock, and
lll_unlock implements a single-thread optimization to avoid atomic
operation, using cmpxchgl instead.  This patch implements by using
the new single-thread.h definitions in a generic way, although using
the previous semantic.

The lll_cond_trylock, lll_cond_lock, and lll_timedlock just use
atomic operations plus calls to lll_lock_wait*.

For __lll_lock_wait_private and __lll_lock_wait the generic implemtation
there is no indication that assembly implementation is required
performance-wise.

Checked on x86_64-linux-gnu and i686-linux-gnu.

	* sysdeps/nptl/lowlevellock.h (__lll_trylock): New macro.
	(lll_trylock): Call __lll_trylock.
	* sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Remove file.
	* sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Likewise.
	* sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
	* sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
	* sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Likewise.
	* sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: Likewise.
	* sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
	* sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
	* sysdeps/unix/sysv/linux/x86/lowlevellock.h: New file.
	* sysdeps/unix/sysv/linux/x86_64/cancellation.S: Include
	lowlevellock-futex.h.
2019-05-14 08:48:02 -03:00
..
bits Add some spaces before '('. 2019-02-27 13:55:45 +00:00
include/asm x86/CET: Extend arch_prctl syscall for CET control 2018-07-24 12:23:17 -07:00
sys Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
arch-pkey.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
cpu-features.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
dl-cet.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
dl-sysdep.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
elision-conf.c Avoid "inline" after return type in function definitions. 2019-02-06 17:16:43 +00:00
elision-conf.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
elision-lock.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
elision-timed.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
elision-trylock.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
elision-unlock.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
force-elision.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
gettimeofday.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
hle.h x86: Use RTM intrinsics in pthread mutex lock elision 2018-10-02 07:51:57 -07:00
Implies Consolidate pthreadtype.h placementConsolidate pthreadtype.h placement 2017-04-10 17:33:10 -03:00
jmp_buf-ssp.sym x86: Make a space in jmpbuf for shadow stack pointer 2017-11-30 04:58:01 -08:00
libc-vdso.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
lowlevellock.h x86: Remove arch-specific low level lock implementation 2019-05-14 08:48:02 -03:00
Makefile x86: Use RTM intrinsics in pthread mutex lock elision 2018-10-02 07:51:57 -07:00
pkey_get.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
pkey_set.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
pthread_mutex_cond_lock.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
pthread_mutex_lock.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
pthread_mutex_timedlock.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
pthread_mutex_trylock.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
setjmpP.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
sysconf.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
time.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
tst-cet-property-1.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
tst-cet-property-2.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
tst-cet-property-dep-2.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
tst-cet-setcontext-1.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
tst-saved_mask-1.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00