diff options
Diffstat (limited to 'lib/libpthread/thread/thr_getschedparam.c')
-rw-r--r-- | lib/libpthread/thread/thr_getschedparam.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libpthread/thread/thr_getschedparam.c b/lib/libpthread/thread/thr_getschedparam.c index 09d8c1b..5dbd1f0 100644 --- a/lib/libpthread/thread/thr_getschedparam.c +++ b/lib/libpthread/thread/thr_getschedparam.c @@ -49,7 +49,8 @@ pthread_getschedparam(pthread_t pthread, int *policy, /* Find the thread in the list of active threads: */ else if ((ret = _find_thread(pthread)) == 0) { /* Return the threads base priority and scheduling policy: */ - param->sched_priority = pthread->base_priority; + param->sched_priority = + PTHREAD_BASE_PRIORITY(pthread->base_priority); *policy = pthread->attr.sched_policy; } |