diff options
Diffstat (limited to 'nptl/init.c')
-rw-r--r-- | nptl/init.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/nptl/init.c b/nptl/init.c index f46e0bb531..47bb0a6f72 100644 --- a/nptl/init.c +++ b/nptl/init.c @@ -31,6 +31,7 @@ #include <fork.h> #include <version.h> #include <shlib-compat.h> +#include <smp.h> #ifndef __NR_set_tid_address @@ -61,6 +62,9 @@ size_t __default_stacksize attribute_hidden; size_t __static_tls_size; size_t __static_tls_align_m1; +/* Flag whether the machine is SMP or not. */ +int __is_smp attribute_hidden; + /* Version of the library, used in libthread_db to detect mismatches. */ static const char nptl_version[] __attribute_used__ = VERSION; @@ -301,6 +305,9 @@ __pthread_initialize_minimal_internal (void) #endif __libc_pthread_init (&__fork_generation, __reclaim_stacks, ptr_pthread_functions); + + /* Determine whether the machine is SMP or not. */ + __is_smp = is_smp_system (); } strong_alias (__pthread_initialize_minimal_internal, __pthread_initialize_minimal) |