commit | 697cfde34072ca145262ad9ed5608322946166dd | [log] [tgz] |
---|---|---|
author | Amaury Denoyelle <adenoyelle@haproxy.com> | Fri Oct 15 15:22:31 2021 +0200 |
committer | Amaury Denoyelle <adenoyelle@haproxy.com> | Fri Oct 15 17:16:11 2021 +0200 |
tree | ec20e5ebae7dacf2ee255f8912a5070c8750f238 | |
parent | 6db9a97f6101fd6bd2e9dd35976550ce4f83b725 [diff] |
BUG/MEDIUM: cpuset: fix cpuset size for FreeBSD Fix the macro used to retrieve the max number of cpus on FreeBSD. The MAXCPU is not properly defined in userspace and always set to 1 despite the machine architecture. Replace it with CPU_SETSIZE. See https://freebsd-hackers.freebsd.narkive.com/gw4BeLum/smp-in-machine-params-h#post6 Without this, the following config file is rejected on FreeBSD even if the machine is SMP : global cpu-map 1-2 0-1 This must be backported up to 2.4.