From c0d602ea6935bd784c2bb81b0c1efe94c6638faa Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 21 Nov 2017 06:19:25 +0100 Subject: posix: _POSIX_Threads_Get_sched_param_sporadic() Remove api parameter to simplify the calling functions. Update #2514. --- cpukit/posix/src/pthreadgetschedparam.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'cpukit/posix/src/pthreadgetschedparam.c') 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; -- cgit v1.2.3