[rtems commit] pthread.c: Conditionalize thread affinity initialization
Joel Sherrill
joel at rtems.org
Thu Apr 3 18:44:05 UTC 2014
Module: rtems
Branch: master
Commit: a0a073d1c9267109c63bcd959547937171ae0c64
Changeset: http://git.rtems.org/rtems/commit/?id=a0a073d1c9267109c63bcd959547937171ae0c64
Author: Joel Sherrill <joel.sherrill at oarcorp.com>
Date: Thu Apr 3 13:51:47 2014 -0500
pthread.c: Conditionalize thread affinity initialization
---
cpukit/posix/src/pthread.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/cpukit/posix/src/pthread.c b/cpukit/posix/src/pthread.c
index a688b7e..6f79658 100644
--- a/cpukit/posix/src/pthread.c
+++ b/cpukit/posix/src/pthread.c
@@ -371,7 +371,7 @@ User_extensions_Control _POSIX_Threads_User_extensions = {
*/
void _POSIX_Threads_Manager_initialization(void)
{
- #if defined(__RTEMS_HAVE_SYS_CPUSET_H__)
+ #if defined(RTEMS_SMP) && defined(__RTEMS_HAVE_SYS_CPUSET_H__)
const CPU_set_Control *affinity;
pthread_attr_t *attr;
More information about the vc
mailing list