summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/pthreadgetschedparam.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-11-21 06:19:25 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-11-21 07:42:32 +0100
commitc0d602ea6935bd784c2bb81b0c1efe94c6638faa (patch)
treeed954cc660c8dee63cb824cdfa4a11478615a843 /cpukit/posix/src/pthreadgetschedparam.c
parentscore: Optimize scheduler priority updates (diff)
downloadrtems-c0d602ea6935bd784c2bb81b0c1efe94c6638faa.tar.bz2
posix: _POSIX_Threads_Get_sched_param_sporadic()
Remove api parameter to simplify the calling functions. Update #2514.
Diffstat (limited to 'cpukit/posix/src/pthreadgetschedparam.c')
-rw-r--r--cpukit/posix/src/pthreadgetschedparam.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/cpukit/posix/src/pthreadgetschedparam.c b/cpukit/posix/src/pthreadgetschedparam.c
index 25c6195967..2a34e7825f 100644
--- a/cpukit/posix/src/pthreadgetschedparam.c
+++ b/cpukit/posix/src/pthreadgetschedparam.c
@@ -38,7 +38,6 @@ int pthread_getschedparam(
{
Thread_Control *the_thread;
Thread_queue_Context queue_context;
- const POSIX_API_Control *api;
Thread_CPU_budget_algorithms budget_algorithm;
const Scheduler_Control *scheduler;
Priority_Control priority;
@@ -54,12 +53,10 @@ int pthread_getschedparam(
return ESRCH;
}
- api = the_thread->API_Extensions[ THREAD_API_POSIX ];
-
_Thread_Wait_acquire_critical( the_thread, &queue_context );
scheduler = _Thread_Scheduler_get_home( the_thread );
- _POSIX_Threads_Get_sched_param_sporadic( the_thread, api, scheduler, param );
+ _POSIX_Threads_Get_sched_param_sporadic( the_thread, scheduler, param );
priority = the_thread->Real_priority.priority;
budget_algorithm = the_thread->budget_algorithm;