[rtems commit] cpukit/configure.ac: Probe for SMP affinity methods
Joel Sherrill
joel at rtems.org
Fri Dec 13 14:30:25 UTC 2013
Module: rtems
Branch: master
Commit: 801a1fc6b2beab0c53c8d27fd32022c10f095510
Changeset: http://git.rtems.org/rtems/commit/?id=801a1fc6b2beab0c53c8d27fd32022c10f095510
Author: Joel Sherrill <joel.sherrill at oarcorp.com>
Date: Mon Dec 9 14:22:33 2013 -0600
cpukit/configure.ac: Probe for SMP affinity methods
---
cpukit/configure.ac | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/cpukit/configure.ac b/cpukit/configure.ac
index 38d2dd9..211f527 100644
--- a/cpukit/configure.ac
+++ b/cpukit/configure.ac
@@ -97,6 +97,14 @@ RTEMS_CHECK_FUNC([pthread_attr_setguardsize],[#include <pthread.h>])
RTEMS_CHECK_FUNC([pthread_attr_setstack],[#include <pthread.h>])
RTEMS_CHECK_FUNC([pthread_attr_getstack],[#include <pthread.h>])
+# These are SMP related and were added to newlib by RTEMS.
+RTEMS_CHECK_FUNC([pthread_attr_setaffinity_np],[#include <pthread.h>])
+RTEMS_CHECK_FUNC([pthread_attr_getaffinity_np],[#include <pthread.h>])
+RTEMS_CHECK_FUNC([pthread_setaffinity_np],[#include <pthread.h>])
+RTEMS_CHECK_FUNC([pthread_getaffinity_np],[#include <pthread.h>])
+RTEMS_CHECK_FUNC([pthread_getattr_np],[#include <pthread.h>])
+AC_CHECK_HEADERS([cpuset.h])
+
# Mandated by POSIX, not declared in some versions of newlib.
AC_CHECK_DECLS([getrusage],,,[#include sys/resource.h])
More information about the vc
mailing list