]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: cpu-topo: try to detect offline cpus at boot
authorWilly Tarreau <w@1wt.eu>
Tue, 11 Jul 2023 16:33:42 +0000 (18:33 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 14 Mar 2025 17:30:30 +0000 (18:30 +0100)
commit12f3a2bbb75869426ce150614acd0dd46d299369
tree7f762bf2ae76d365ee24a7fa51e319ea24a390d6
parent44881e5abf0dda3c631786296410053dd48264d4
MINOR: cpu-topo: try to detect offline cpus at boot

When possible, the offline CPUs are detected at boot and their OFFLINE
flag is set in the ha_cpu_topo[] array. When the detection is not
possible (e.g. not linux, /sys not mounted etc), we just mark none of
them as being offline, as we don't want to infer wrong info that could
hinder automatic CPU placement detection. When valid, we take this
opportunity for refining cpu_topo_lastcpu so that we don't need to
manipulate CPUs beyond this value.
src/cpu_topo.c