summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/pthreadsetschedparam.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-06-14 17:23:03 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-06-22 14:00:28 +0200
commit6bab009a61ae9ca7f7ac76140f8f13fbaab784c6 (patch)
tree7f10aaf87cf912151429fb1cfbde65071e804d87 /cpukit/posix/src/pthreadsetschedparam.c
parentposix: Delete POSIX_API_Control::schedpolicy (diff)
downloadrtems-6bab009a61ae9ca7f7ac76140f8f13fbaab784c6.tar.bz2
posix: Delete POSIX_API_Control::schedparam
This field was redundant.
Diffstat (limited to 'cpukit/posix/src/pthreadsetschedparam.c')
-rw-r--r--cpukit/posix/src/pthreadsetschedparam.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cpukit/posix/src/pthreadsetschedparam.c b/cpukit/posix/src/pthreadsetschedparam.c
index 30ddd0347c..a2e13a0f17 100644
--- a/cpukit/posix/src/pthreadsetschedparam.c
+++ b/cpukit/posix/src/pthreadsetschedparam.c
@@ -84,7 +84,6 @@ int pthread_setschedparam(
_Watchdog_Per_CPU_remove_relative( &api->Sporadic_timer );
}
- api->schedparam = *param;
api->Attributes.schedpolicy = policy;
api->Attributes.schedparam = *param;
@@ -97,7 +96,9 @@ int pthread_setschedparam(
case SCHED_RR:
the_thread->cpu_time_budget =
rtems_configuration_get_ticks_per_timeslice();
- new_priority = _POSIX_Priority_To_core( api->schedparam.sched_priority );
+ new_priority = _POSIX_Priority_To_core(
+ api->Attributes.schedparam.sched_priority
+ );
break;
}