Permalink
Browse files

[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
  • Loading branch information...
mgorny committed Dec 11, 2018
1 parent 786aa69 commit 5667f50097cd4af7b21300ef782b48c9ec5d0370
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit 5667f50

Please sign in to comment.