[runtime] Use getloadavg() on NetBSD as well

Switch NetBSD from reading /proc (which is broken) to getloadavg()
(which is already used by Darwin).  NetBSD discourages using procfs
in favor of system API calls.

Differential Revision: https://reviews.llvm.org/D55486

llvm-svn: 348885
This commit is contained in:
Michal Gorny 2018-12-11 19:02:09 +00:00
parent 37a22ea063
commit 70cdd83cd6
1 changed files with 1 additions and 1 deletions

View File

@ -2065,7 +2065,7 @@ int __kmp_is_address_mapped(void *addr) {
#ifdef USE_LOAD_BALANCE
#if KMP_OS_DARWIN
#if KMP_OS_DARWIN || KMP_OS_NETBSD
// The function returns the rounded value of the system load average
// during given time interval which depends on the value of