From 23b1bb38b208a6638747bb49b8184a5571e8f5e7 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 13 Jun 2016 06:53:27 +0200 Subject: posix: Fix pthread_getschedparam() Return the unmodified thread priority value according to POSIX. Close #2736. --- cpukit/posix/src/pthreadgetschedparam.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpukit/posix/src/pthreadgetschedparam.c') 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 ); -- cgit v1.2.3