From cf44028c0280ec037ab55a5771ecbf48bb4bab13 Mon Sep 17 00:00:00 2001 From: Yonggang Luo Date: Fri, 21 Oct 2022 03:18:35 +0800 Subject: [PATCH] util: Move UTIL_MAX_CPUS from u_thread.h to u_cpu_detect.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Marek Olšák Reviewed-by: Jesse Natalie Part-of: --- src/util/u_cpu_detect.h | 3 +++ src/util/u_thread.h | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/util/u_cpu_detect.h b/src/util/u_cpu_detect.h index af05d5aadf6..bbc89f8d928 100644 --- a/src/util/u_cpu_detect.h +++ b/src/util/u_cpu_detect.h @@ -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 diff --git a/src/util/u_thread.h b/src/util/u_thread.h index 179f926f14a..d2fddec7a4a 100644 --- a/src/util/u_thread.h +++ b/src/util/u_thread.h @@ -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