]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: cpuset: add cpu_map_configured() to know if a cpu-map was found
authorWilly Tarreau <w@1wt.eu>
Tue, 18 Jul 2023 15:14:10 +0000 (17:14 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 20 Jul 2023 09:01:09 +0000 (11:01 +0200)
commit71344176135b6e140ebc7c107ffe40ff9c3f79ba
tree76a216b3307b0b481bb46adac2b1057d5ff1a291
parentf034139bc0cef7725cae54ce155e09969bfa9dce
MINOR: cpuset: add cpu_map_configured() to know if a cpu-map was found

Since we'll soon want to adjust the "thread-groups" degree of freedom
based on the presence of cpu-map, we first need to be able to detect
if cpu-map was used. This function scans all cpu-map sets to detect if
any is present, and returns true accordingly.
include/haproxy/cpuset.h
src/cpuset.c