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/vars.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'nptl/vars.c') diff --git a/nptl/vars.c b/nptl/vars.c index 3696020145..2f52391dc2 100644 --- a/nptl/vars.c +++ b/nptl/vars.c @@ -27,9 +27,6 @@ union pthread_attr_transparent __default_pthread_attr attribute_hidden; /* Mutex protecting __default_pthread_attr. */ int __default_pthread_attr_lock = LLL_LOCK_INITIALIZER; -/* Flag whether the machine is SMP or not. */ -int __is_smp attribute_hidden; - #ifndef TLS_MULTIPLE_THREADS_IN_TCB /* Variable set to a nonzero value either if more than one thread runs or ran, or if a single-threaded process is trying to cancel itself. See -- cgit v1.2.1