cpukit/configure.ac: Probe for SMP affinity methods

This commit is contained in:
Joel Sherrill
2013-12-09 14:22:33 -06:00
parent 7318449947
commit 801a1fc6b2

View File

@@ -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_setstack],[#include <pthread.h>])
RTEMS_CHECK_FUNC([pthread_attr_getstack],[#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. # Mandated by POSIX, not declared in some versions of newlib.
AC_CHECK_DECLS([getrusage],,,[#include sys/resource.h]) AC_CHECK_DECLS([getrusage],,,[#include sys/resource.h])