]> git.ipfire.org Git - thirdparty/glibc.git/commit
nptl: Eliminate <smp.h> and __is_smp
authorFlorian Weimer <fweimer@redhat.com>
Fri, 13 Nov 2020 14:19:41 +0000 (15:19 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 13 Nov 2020 14:20:10 +0000 (15:20 +0100)
commit26f7c72a99f4e46755ec2ff23a6a7cf9c2c337c3
tree709823d1994876ad92abcffe368bb74899dfd1e5
parentd5c4cce9c3eb82cb57d01a3ce3a0999e146abd63
nptl: Eliminate <smp.h> and __is_smp

Most systems are SMP, so optimizing for the UP case is no longer
approriate.  A dynamic check based on the kernel identification
has been only implemented for i386 anyway.

To disable adaptive mutexes on sh, define DEFAULT_ADAPTIVE_COUNT
as zero for this architecture.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
nptl/nptl-init.c
nptl/pthreadP.h
nptl/pthread_mutex_lock.c
nptl/pthread_mutex_timedlock.c
nptl/smp.h [deleted file]
nptl/vars.c
sysdeps/unix/sysv/linux/i386/smp.h [deleted file]
sysdeps/unix/sysv/linux/sh/adaptive_spin_count.h [new file with mode: 0644]
sysdeps/unix/sysv/linux/sh/smp.h [deleted file]