From af9115f35cfb3d0adeb3e105fd608883596f2637 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 6 Oct 2017 10:07:38 +0200 Subject: posix: Simplify POSIX_API_Control Return stack area via pthread_getattr_np(). Simplify * pthread_attr_setaffinity_np(), and * pthread_attr_getaffinity_np() and let the scheduler do the more sophisticated error checks. Make * pthread_setaffinity_np(), * pthread_getaffinity_np(), * pthread_attr_setaffinity_np(), and * pthread_attr_getaffinity_np() available in all configurations. Update #2514. Close #3145. Close #3168. --- cpukit/posix/src/pthreadgetschedparam.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpukit/posix/src/pthreadgetschedparam.c') diff --git a/cpukit/posix/src/pthreadgetschedparam.c b/cpukit/posix/src/pthreadgetschedparam.c index b809db95dc..f172caecd4 100644 --- a/cpukit/posix/src/pthreadgetschedparam.c +++ b/cpukit/posix/src/pthreadgetschedparam.c @@ -56,8 +56,8 @@ int pthread_getschedparam( _Thread_Wait_acquire_critical( the_thread, &queue_context ); - *policy = api->Attributes.schedpolicy; - *param = api->Attributes.schedparam; + *policy = api->schedpolicy; + *param = api->schedparam; scheduler = _Thread_Scheduler_get_home( the_thread ); priority = the_thread->Real_priority.priority; -- cgit v1.2.3