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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user