[rtems commit] psxtests/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: 7318449947e9123136dcad7c01041aadd58bb5be
Changeset: http://git.rtems.org/rtems/commit/?id=7318449947e9123136dcad7c01041aadd58bb5be
Author: Joel Sherrill <joel.sherrill at oarcorp.com>
Date: Mon Dec 9 14:22:13 2013 -0600
psxtests/configure.ac: Probe for SMP affinity methods
---
testsuites/psxtests/configure.ac | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+), 0 deletions(-)
diff --git a/testsuites/psxtests/configure.ac b/testsuites/psxtests/configure.ac
index 8e0a238..16676a4 100644
--- a/testsuites/psxtests/configure.ac
+++ b/testsuites/psxtests/configure.ac
@@ -48,6 +48,27 @@ AC_CHECK_DECLS([pthread_attr_getguardsize],[],[],[[#include <pthread.h>]])
# Added to pthreads after initial revision. May not be in toolset
AC_CHECK_DECLS([pthread_attr_setguardsize],[],[],[[#include <pthread.h>]])
+# Added to newlib pthreads for RTEMS SMP (np), may not be present
+AC_CHECK_DECLS([pthread_attr_setaffinity_np],[].[],,[[#include <pthread.h>]])
+
+# Added to newlib pthreads for RTEMS SMP (np), may not be present
+AC_CHECK_DECLS([pthread_attr_getaffinity_np],[].[],,[[#include <pthread.h>]])
+
+# Added to newlib pthreads for RTEMS SMP (np), may not be present
+AC_CHECK_DECLS([pthread_setaffinity_np],[].[],,[[#include <pthread.h>]])
+
+# Added to newlib pthreads for RTEMS SMP (np), may not be present
+AC_CHECK_DECLS([pthread_getaffinity_np],[].[],,[[#include <pthread.h>]])
+
+# Added to newlib pthreads for RTEMS (np), may not be present
+AC_CHECK_DECLS([pthread_getattr_np],[].[],,[[#include <pthread.h>]])
+
+# Added to newlib pthreads for RTEMS SMP (np), may not be present
+AC_CHECK_HEADERS([cpuset.h])
+
+# Mandated by POSIX, not declared in some versions of newlib.
+AC_CHECK_DECLS([getrusage],,,[#include sys/resource.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