]> git.99rst.org Git - git.git/commit
thread-utils.c: detect online CPU count on OpenBSD / NetBSD
authorBrad Smith <redacted>
Fri, 9 May 2025 06:13:13 +0000 (02:13 -0400)
committerJunio C Hamano <redacted>
Mon, 2 Jun 2025 00:15:13 +0000 (17:15 -0700)
commit7f1a09dbb643c8669928ee32337ff92370fc1157
tree09c2743b7d5a80b3f03c7e0fab9bd03e5e0f310f
parentd50a5e8939abfc07c2ff97ae72e9330939b36ee0
thread-utils.c: detect online CPU count on OpenBSD / NetBSD

OpenBSD / NetBSD use HW_NCPUONLINE to detect the online CPU
count. OpenBSD ships with SMT disabled on X86 systems so
HW_NCPU would provide double the number of CPUs as opposed
to the proper online count.

Signed-off-by: Brad Smith <redacted>
Reviewed-by: Collin Funk <redacted>
Signed-off-by: Junio C Hamano <redacted>
thread-utils.c
git clone https://git.99rst.org/PROJECT