]> git.kaiwu.me - haproxy.git/commit
MINOR: cpu-topo: add detection of online CPUs on FreeBSD
authorWilly Tarreau <w@1wt.eu>
Thu, 20 Jul 2023 14:16:05 +0000 (16:16 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 14 Mar 2025 17:30:30 +0000 (18:30 +0100)
commit44881e5abf0dda3c631786296410053dd48264d4
treec20f960408d80d38c589a233a2cf1dc3fe0c7a41
parent8f72ce335a2b000e621fec0e22bd3b55d88d6069
MINOR: cpu-topo: add detection of online CPUs on FreeBSD

On FreeBSD we can detect online CPUs at least by doing the bitwise-OR of
the CPUs of all domains, so we're using this and adding this detection
to ha_cpuset_detect_online(). If we find simpler later, we can always
rework it, but it's reasonably inexpensive since we only check existing
domains.
src/cpu_topo.c