]> git.kaiwu.me - haproxy.git/commit
MINOR: cpu-topo: skip CPU detection when /sys/.../cpu does not exist
authorWilly Tarreau <w@1wt.eu>
Mon, 6 Jan 2025 18:38:45 +0000 (19:38 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 14 Mar 2025 17:30:30 +0000 (18:30 +0100)
commit8542c79f9daa925619215325e0fca52c80d9a419
tree541c65fb3a745442a7ca761162e719e98217ba2b
parentc5ddf4a5b2a466cf19c5df63ef58baa907c292a4
MINOR: cpu-topo: skip CPU detection when /sys/.../cpu does not exist

There's no point scanning all entries when /cpu doesn't exist in the
first place. Let's check once for it and skip the loop in this case.
src/cpu_topo.c