Add pthread_getaffinity_np() wrapper for Android Signed-off-by: Allen Martin <amartin@xxxxxxxxxx> --- src/include/bionic.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/include/bionic.h b/src/include/bionic.h index 54f9c54b0824..04a04de5fd1a 100644 --- a/src/include/bionic.h +++ b/src/include/bionic.h @@ -37,6 +37,12 @@ static inline int pthread_setaffinity_np(pthread_t thread, size_t cpusetsize, return sched_setaffinity(0, cpusetsize, cpuset); } +static inline int pthread_getaffinity_np(pthread_t thread, size_t cpusetsize, + cpu_set_t *cpuset) +{ + return sched_getaffinity(0, cpusetsize, cpuset); +} + #endif /* PTHREAD_BIONIC */ #endif /* BIONIC_H */ -- 2.11.0 -- To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html