summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/pthreadgetschedparam.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-06-13 06:53:27 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-06-13 14:56:21 +0200
commit23b1bb38b208a6638747bb49b8184a5571e8f5e7 (patch)
tree3f68df22a0cb4c056d31fc910763ef59ca0afedb /cpukit/posix/src/pthreadgetschedparam.c
parentbsp/qoriq: Increase reserved size for FDT (diff)
downloadrtems-23b1bb38b208a6638747bb49b8184a5571e8f5e7.tar.bz2
posix: Fix pthread_getschedparam()
Return the unmodified thread priority value according to POSIX. Close #2736.
Diffstat (limited to 'cpukit/posix/src/pthreadgetschedparam.c')
-rw-r--r--cpukit/posix/src/pthreadgetschedparam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/posix/src/pthreadgetschedparam.c b/cpukit/posix/src/pthreadgetschedparam.c
index 21908cb2e3..9b6969ce8e 100644
--- a/cpukit/posix/src/pthreadgetschedparam.c
+++ b/cpukit/posix/src/pthreadgetschedparam.c
@@ -54,7 +54,7 @@ int pthread_getschedparam(
*policy = api->schedpolicy;
*param = api->schedparam;
param->sched_priority = _POSIX_Priority_From_core(
- the_thread->current_priority
+ the_thread->real_priority
);
_Thread_State_release( the_thread, &lock_context );