K 10 svn:author V 3 dim K 8 svn:date V 27 2021-12-22T10:13:15.177805Z K 7 svn:log V 637 Revert r367815, so we can apply the slightly different version that landed upstream: 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 (cherry picked from commit 5cc6cb2645b79b6108922957984dd86077cd7f06) Git Hash: 39e8b505feb0dcfef4c8e794d252f1d402be3f5f Git Author: dim@FreeBSD.org END