summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/include/rtems
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/include/rtems
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/include/rtems')
-rw-r--r--cpukit/posix/include/rtems/posix/pthreadattrimpl.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/cpukit/posix/include/rtems/posix/pthreadattrimpl.h b/cpukit/posix/include/rtems/posix/pthreadattrimpl.h
index 4a565fbb38..12b8559181 100644
--- a/cpukit/posix/include/rtems/posix/pthreadattrimpl.h
+++ b/cpukit/posix/include/rtems/posix/pthreadattrimpl.h
@@ -68,11 +68,13 @@ RTEMS_INLINE_ROUTINE void _POSIX_Threads_Initialize_attributes(
#if defined(RTEMS_POSIX_API)
RTEMS_INLINE_ROUTINE void _POSIX_Threads_Get_sched_param_sporadic(
const Thread_Control *the_thread,
- const POSIX_API_Control *api,
const Scheduler_Control *scheduler,
struct sched_param *param
)
{
+ const POSIX_API_Control *api;
+
+ api = the_thread->API_Extensions[ THREAD_API_POSIX ];
param->sched_ss_low_priority = _POSIX_Priority_From_core(
scheduler,
api->Sporadic.Low_priority.priority