util: Remove usage of USE_ELF_TLS in u_thread.h
authorYonggang Luo <luoyonggang@gmail.com>
Sat, 25 Jun 2022 05:32:32 +0000 (13:32 +0800)
committerMarge Bot <emma+marge@anholt.net>
Fri, 29 Jul 2022 23:59:12 +0000 (23:59 +0000)
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17213>

src/util/u_thread.h

index 98b7978..804593f 100644 (file)
@@ -78,7 +78,6 @@
  * still want to use normal TLS (which involves a function call, but not the
  * expensive pthread_getspecific() or its equivalent).
  */
-#ifdef USE_ELF_TLS
 #if DETECT_OS_APPLE
 /* Apple Clang emits wrappers when using thread_local that break module linkage,
  * but not with __thread
@@ -90,7 +89,6 @@
 #else
 #define __THREAD_INITIAL_EXEC thread_local
 #endif
-#endif
 
 static inline int
 util_get_current_cpu(void)