summaryrefslogtreecommitdiffstats
path: root/openmp/runtime/src/z_Linux_util.cpp
diff options
context:
space:
mode:
authorDavid Carlier <devnexen@gmail.com>2019-10-30 14:51:22 +0000
committerDavid Carlier <devnexen@gmail.com>2019-10-30 14:51:22 +0000
commit506992848729ceb97d95b29b5a3f691936003c32 (patch)
tree935dd08fbfd69d93e1632a465b61021cf02271e0 /openmp/runtime/src/z_Linux_util.cpp
parent37c8baf821e8cb66a3d49e7b570970b2606983b2 (diff)
downloadbcm5719-llvm-506992848729ceb97d95b29b5a3f691936003c32.tar.gz
bcm5719-llvm-506992848729ceb97d95b29b5a3f691936003c32.zip
[OpenMP] Reset affinity mask in the process child on FreeBSD
Reviewers: dim, chandlerc, jdoerfert Reviewed By: dim Differential Revision: https://reviews.llvm.org/D69047
Diffstat (limited to 'openmp/runtime/src/z_Linux_util.cpp')
-rw-r--r--openmp/runtime/src/z_Linux_util.cpp2
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 9f79a6182d0..1cc41fda1cb 100644
--- a/openmp/runtime/src/z_Linux_util.cpp
+++ b/openmp/runtime/src/z_Linux_util.cpp
@@ -1287,7 +1287,7 @@ static void __kmp_atfork_child(void) {
++__kmp_fork_count;
#if KMP_AFFINITY_SUPPORTED
-#if KMP_OS_LINUX
+#if KMP_OS_LINUX || KMP_OS_FREEBSD
// reset the affinity in the child to the initial thread
// affinity in the parent
kmp_set_thread_affinity_mask_initial();
OpenPOWER on IntegriCloud