K 10 svn:author V 3 dim K 8 svn:date V 27 2021-12-22T10:13:10.635812Z K 7 svn:log V 569 For llvm's internal function which retrieves the number of available "hardware threads", use cpuset_getaffinity(2) on FreeBSD, so it will honor processor sets configured by the cpuset(1) command. This should make it possible to avoid e.g. lld creating a huge number of threads on a machine with many cores, even for linking simple programs. This will also be submitted upstream. Submitted by: mjg MFC after: 1 week (cherry picked from commit 991f6e7534a9b1a99b7da711676e6714e2cf6680) Git Hash: dfff2e2d5c3629ed88f3dcdce79a88653ca36f23 Git Author: dim@FreeBSD.org END