summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2014-04-03 13:51:47 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2014-04-03 13:51:47 -0500
commita0a073d1c9267109c63bcd959547937171ae0c64 (patch)
treef59fb3b273e5787534a4ef735ba4741d5cb15c84
parentsmpaffinity01: Use Priority Affinity SMP scheduler. (diff)
downloadrtems-a0a073d1c9267109c63bcd959547937171ae0c64.tar.bz2
pthread.c: Conditionalize thread affinity initialization
-rw-r--r--cpukit/posix/src/pthread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/posix/src/pthread.c b/cpukit/posix/src/pthread.c
index a688b7e808..6f79658677 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;