From 26f7c72a99f4e46755ec2ff23a6a7cf9c2c337c3 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Fri, 13 Nov 2020 15:19:41 +0100 Subject: nptl: Eliminate 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 --- nptl/nptl-init.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'nptl/nptl-init.c') diff --git a/nptl/nptl-init.c b/nptl/nptl-init.c index 95c60a5..4aa1231 100644 --- a/nptl/nptl-init.c +++ b/nptl/nptl-init.c @@ -32,7 +32,6 @@ #include #include #include -#include #include #include #include @@ -346,9 +345,6 @@ __pthread_initialize_minimal_internal (void) __libc_pthread_init (&__fork_generation, __reclaim_stacks, ptr_pthread_functions); - /* Determine whether the machine is SMP or not. */ - __is_smp = is_smp_system (); - #if HAVE_TUNABLES __pthread_tunables_init (); #endif -- cgit v1.1