From 5803f3738f8f97c2188bd36274e60602af515e7f Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 28 Jun 2019 08:30:11 +0200 Subject: score: Add and use _Thread_Get_unmapped_priority(). Add and use _Thread_Get_unmapped_real_priority(). --- cpukit/libmisc/cpuuse/cpuusagetop.c | 4 ++-- cpukit/libmisc/monitor/mon-task.c | 5 +---- 2 files changed, 3 insertions(+), 6 deletions(-) (limited to 'cpukit/libmisc') diff --git a/cpukit/libmisc/cpuuse/cpuusagetop.c b/cpukit/libmisc/cpuuse/cpuusagetop.c index c4bfa704d1..96e364bf93 100644 --- a/cpukit/libmisc/cpuuse/cpuusagetop.c +++ b/cpukit/libmisc/cpuuse/cpuusagetop.c @@ -448,8 +448,8 @@ rtems_cpuusage_top_thread (rtems_task_argument arg) " 0x%08" PRIx32 " | %-19s | %3" PRId64 " | %3" PRId64 " | ", thread->Object.id, name, - thread->Real_priority.priority, - _Thread_Get_priority(thread)); + _Thread_Get_unmapped_real_priority(thread), + _Thread_Get_unmapped_priority(thread)); usage = data->usage[i]; current_usage = data->current_usage[i]; diff --git a/cpukit/libmisc/monitor/mon-task.c b/cpukit/libmisc/monitor/mon-task.c index e1126b6457..bb2c49e77f 100644 --- a/cpukit/libmisc/monitor/mon-task.c +++ b/cpukit/libmisc/monitor/mon-task.c @@ -9,7 +9,6 @@ #include #include #include -#include #include #include @@ -112,9 +111,7 @@ rtems_monitor_task_canonical( canonical_task->entry = rtems_thread->Start.Entry; canonical_task->stack = rtems_thread->Start.Initial_stack.area; canonical_task->stack_size = rtems_thread->Start.Initial_stack.size; - canonical_task->priority = SCHEDULER_PRIORITY_UNMAP( - _Thread_Get_priority( rtems_thread ) - ); + canonical_task->priority = _Thread_Get_unmapped_priority( rtems_thread ); canonical_task->events = api->Event.pending_events; /* * FIXME: make this optionally cpu_time_executed -- cgit v1.2.3