diff options
author | Michal Gorny <mgorny@gentoo.org> | 2018-12-11 19:02:09 +0000 |
---|---|---|
committer | Michal Gorny <mgorny@gentoo.org> | 2018-12-11 19:02:09 +0000 |
commit | 5667f50097cd4af7b21300ef782b48c9ec5d0370 (patch) | |
tree | 36763a5f2af22b0bec2479f45ece124f4166202b /openmp | |
parent | 786aa694416e16b27ee5b91249086cab9724467c (diff) |
[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
Diffstat (limited to 'openmp')
-rw-r--r-- | openmp/runtime/src/z_Linux_util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openmp/runtime/src/z_Linux_util.cpp b/openmp/runtime/src/z_Linux_util.cpp index 283a20517e7..c2f37eb7bae 100644 --- a/openmp/runtime/src/z_Linux_util.cpp +++ b/openmp/runtime/src/z_Linux_util.cpp @@ -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 |