]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: cpuset: make the API support negative CPU IDs
authorWilly Tarreau <w@1wt.eu>
Wed, 12 Mar 2025 17:46:25 +0000 (18:46 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 14 Mar 2025 17:30:30 +0000 (18:30 +0100)
commit32bb68e73669c06f7957066eafdd5adfbfc6fb4f
tree728233753172984f5799a843e3820d7b2d1fd43a
parentf156baf8ce0f0bad78e57829a13eca48fd2971fd
MINOR: cpuset: make the API support negative CPU IDs

Negative IDs are very convenient to mean "not set", so let's just make
the cpuset API robust against this, especially with ha_cpuset_isset()
so that we don't have to manually add this check everywhere when a
value is not known.
src/cpuset.c