diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-11-21 06:19:25 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-11-21 07:42:32 +0100 |
commit | c0d602ea6935bd784c2bb81b0c1efe94c6638faa (patch) | |
tree | ed954cc660c8dee63cb824cdfa4a11478615a843 /cpukit/posix/src/pthreadgetattrnp.c | |
parent | score: Optimize scheduler priority updates (diff) | |
download | rtems-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/pthreadgetattrnp.c')
-rw-r--r-- | cpukit/posix/src/pthreadgetattrnp.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/cpukit/posix/src/pthreadgetattrnp.c b/cpukit/posix/src/pthreadgetattrnp.c index 6690bda988..5cc47c6901 100644 --- a/cpukit/posix/src/pthreadgetattrnp.c +++ b/cpukit/posix/src/pthreadgetattrnp.c @@ -36,7 +36,6 @@ int pthread_getattr_np( { Thread_Control *the_thread; ISR_lock_Context lock_context; - const POSIX_API_Control *api; Thread_CPU_budget_algorithms budget_algorithm; const Scheduler_Control *scheduler; bool ok; @@ -55,8 +54,6 @@ int pthread_getattr_np( _Thread_State_acquire_critical( the_thread, &lock_context ); - api = the_thread->API_Extensions[ THREAD_API_POSIX ]; - attr->stackaddr = the_thread->Start.Initial_stack.area; attr->stacksize = the_thread->Start.Initial_stack.size; @@ -73,7 +70,6 @@ int pthread_getattr_np( ); _POSIX_Threads_Get_sched_param_sporadic( the_thread, - api, scheduler, &attr->schedparam ); |