Module: Mesa Branch: main Commit: 365253605aac3f6aa3a4cc3712acc28239844813 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=365253605aac3f6aa3a4cc3712acc28239844813
Author: Yonggang Luo <[email protected]> Date: Sat Jun 25 13:32:32 2022 +0800 util: Remove usage of USE_ELF_TLS in u_thread.h Signed-off-by: Yonggang Luo <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17213> --- src/util/u_thread.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/util/u_thread.h b/src/util/u_thread.h index 98b7978b752..804593f63eb 100644 --- a/src/util/u_thread.h +++ b/src/util/u_thread.h @@ -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)
