mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
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>
This commit is contained in:
@ -120,9 +120,6 @@ __pthread_mutex_lock (pthread_mutex_t *mutex)
|
||||
else if (__builtin_expect (PTHREAD_MUTEX_TYPE (mutex)
|
||||
== PTHREAD_MUTEX_ADAPTIVE_NP, 1))
|
||||
{
|
||||
if (! __is_smp)
|
||||
goto simple;
|
||||
|
||||
if (LLL_MUTEX_TRYLOCK (mutex) != 0)
|
||||
{
|
||||
int cnt = 0;
|
||||
|
Reference in New Issue
Block a user