diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-10-17 09:20:20 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-10-17 11:10:00 +0200 |
commit | 3f3f42482daa45aff3647f34afb4e2c4eca242cd (patch) | |
tree | ff7e96eddeacf3ea09547d1f7b3b2fb83f9b4e7d /cpukit/posix/src/pthreadgetschedparam.c | |
parent | posix: Move POSIX_API_Control::thread (diff) | |
download | rtems-3f3f42482daa45aff3647f34afb4e2c4eca242cd.tar.bz2 |
posix: Remove POSIX_API_Control::schedparam
Move sporadic server scheduler parameters to
POSIX_API_Control::Sporadic. Remove redundant scheduler priority
parameter.
Update #2514.
Diffstat (limited to 'cpukit/posix/src/pthreadgetschedparam.c')
-rw-r--r-- | cpukit/posix/src/pthreadgetschedparam.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/posix/src/pthreadgetschedparam.c b/cpukit/posix/src/pthreadgetschedparam.c index f172caecd4..a5494b5922 100644 --- a/cpukit/posix/src/pthreadgetschedparam.c +++ b/cpukit/posix/src/pthreadgetschedparam.c @@ -25,6 +25,7 @@ #include <errno.h> #include <rtems/posix/pthreadimpl.h> +#include <rtems/posix/pthreadattrimpl.h> #include <rtems/posix/priorityimpl.h> #include <rtems/score/schedulerimpl.h> #include <rtems/score/threadimpl.h> @@ -57,9 +58,8 @@ int pthread_getschedparam( _Thread_Wait_acquire_critical( the_thread, &queue_context ); *policy = api->schedpolicy; - *param = api->schedparam; - scheduler = _Thread_Scheduler_get_home( the_thread ); + _POSIX_Threads_Get_sched_param_sporadic( the_thread, api, scheduler, param ); priority = the_thread->Real_priority.priority; _Thread_Wait_release( the_thread, &queue_context ); |