]> git.ipfire.org Git - thirdparty/xz.git/commit
tuklib_cpucores: Use HW_NCPUONLINE on OpenBSD.
authorLasse Collin <lasse.collin@tukaani.org>
Thu, 20 Oct 2022 17:22:50 +0000 (20:22 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Thu, 20 Oct 2022 17:22:50 +0000 (20:22 +0300)
commit2611c4d90535652d3eb7ef4a026a6691276fab43
tree7277997b90b6b812d101c45e8ef0b84613b81f3f
parent424ac91c7e0419393ff2bde4f62e21fa611c776d
tuklib_cpucores: Use HW_NCPUONLINE on OpenBSD.

On OpenBSD the number of cores online is often less
than what HW_NCPU would return because OpenBSD disables
simultaneous multi-threading (SMT) by default.

Thanks to Christian Weisgerber.
m4/tuklib_cpucores.m4
src/common/tuklib_cpucores.c