util: Move UTIL_MAX_CPUS from u_thread.h to u_cpu_detect.h

UTIL_MAX_CPUS is not used by u_thread.* anymore after commit
"util: replace UTIL_MAX_CPUS by util_cpu_caps.num_cpu_mask_bits"

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19266>
This commit is contained in:
Yonggang Luo
2022-10-21 03:18:35 +08:00
committed by Marge Bot
parent 64ee9c1158
commit cf44028c02
2 changed files with 3 additions and 3 deletions
+3
View File
@@ -43,6 +43,9 @@
#include "util/u_thread.h"
/* Maximal cpu count for update affinity */
#define UTIL_MAX_CPUS 1024 /* this should be enough */
#ifdef __cplusplus
extern "C" {
#endif
-3
View File
@@ -35,9 +35,6 @@
#include "c11/threads.h"
#include "detect_os.h"
/* For util_set_thread_affinity to size the mask. */
#define UTIL_MAX_CPUS 1024 /* this should be enough */
/* Some highly performance-sensitive thread-local variables like the current GL
* context are declared with the initial-exec model on Linux. glibc allocates a
* fixed number of extra slots for initial-exec TLS variables at startup, and