util: Remove usage of USE_ELF_TLS in u_thread.h

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>
This commit is contained in:
Yonggang Luo 2022-06-25 13:32:32 +08:00 committed by Marge Bot
parent aa0b857544
commit 365253605a
1 changed files with 0 additions and 2 deletions

View 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)