From f54d8c64576c924ad673fb05fcd3c0e0e33fe946 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Thu, 6 Jul 2023 14:56:42 +0200 Subject: [PATCH] CLEANUP: cpuset: remove the unused proc_t1 field in cpu_map This field used to store the cpumap of the first thread in a group, and was used till 2.4 to hold some default settings, after which it was no longer used. Let's just drop it. --- include/haproxy/cpuset-t.h | 1 - src/haproxy.c | 1 - 2 files changed, 2 deletions(-) diff --git a/include/haproxy/cpuset-t.h b/include/haproxy/cpuset-t.h index 3a479e88a..d3ebb356c 100644 --- a/include/haproxy/cpuset-t.h +++ b/include/haproxy/cpuset-t.h @@ -48,7 +48,6 @@ struct hap_cpuset { }; struct cpu_map { - struct hap_cpuset proc_t1 ; /* list of CPU masks for the 1st thread of the group */ struct hap_cpuset thread[MAX_THREADS_PER_GROUP]; /* list of CPU masks for the 32/64 threads of this group */ }; diff --git a/src/haproxy.c b/src/haproxy.c index 6b8fdf158..ac6c50340 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -1533,7 +1533,6 @@ static void init_early(int argc, char **argv) int g, i; for (g = 0; g < MAX_TGROUPS; g++) { - ha_cpuset_zero(&cpu_map[g].proc_t1); for (i = 0; i < MAX_THREADS_PER_GROUP; ++i) { ha_cpuset_zero(&cpu_map[g].thread[i]); }