diff options
author | Alp Toker <alp@nuanti.com> | 2014-03-02 04:12:06 +0000 |
---|---|---|
committer | Alp Toker <alp@nuanti.com> | 2014-03-02 04:12:06 +0000 |
commit | 98758b09c80e4e8c745d4a7688900c08ab83fc28 (patch) | |
tree | e9aa88cd9c153022f2bcaf1edffb048d773b23e7 /openmp/runtime/src/z_Linux_util.c | |
parent | 002da5db2912dcc4c7f88402a6d8c5901f25d2fd (diff) | |
download | bcm5719-llvm-98758b09c80e4e8c745d4a7688900c08ab83fc28.tar.gz bcm5719-llvm-98758b09c80e4e8c745d4a7688900c08ab83fc28.zip |
Make affinity support conditional on KMP_AFFINITY_SUPPORTED
The feature was previously guarded with KMP_OS_LINUX || KMP_OS_WINDOWS but can
now be enabled/disabled independently to simplify porting.
Completes the work started in r202478.
llvm-svn: 202613
Diffstat (limited to 'openmp/runtime/src/z_Linux_util.c')
-rw-r--r-- | openmp/runtime/src/z_Linux_util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openmp/runtime/src/z_Linux_util.c b/openmp/runtime/src/z_Linux_util.c index 664fdeafd42..7633f990a73 100644 --- a/openmp/runtime/src/z_Linux_util.c +++ b/openmp/runtime/src/z_Linux_util.c @@ -110,7 +110,7 @@ __kmp_print_cond( char *buffer, kmp_cond_align_t *cond ) /* ------------------------------------------------------------------------ */ /* ------------------------------------------------------------------------ */ -#if KMP_OS_LINUX +#if KMP_OS_LINUX && KMP_AFFINITY_SUPPORTED /* * Affinity support @@ -440,7 +440,7 @@ __kmp_change_thread_affinity_mask( int gtid, kmp_affin_mask_t *new_mask, } } -#endif // KMP_OS_LINUX +#endif // KMP_OS_LINUX && KMP_AFFINITY_SUPPORTED /* ------------------------------------------------------------------------ */ /* ------------------------------------------------------------------------ */ |