]> 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>
Fri, 11 Nov 2022 11:28:56 +0000 (13:28 +0200)
commit5daa40454b63c4eb04ab5caeb339eddc95c94bb1
treef541d54a2f0842572db81a16db095b6fff658ed4
parent0af861050f375678eafc4e1136ca589ae47d31c0
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