summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/monitor/mon-task.c
diff options
context:
space:
mode:
authorGedare Bloom <gedare@rtems.org>2017-12-21 11:49:30 -0500
committerGedare Bloom <gedare@rtems.org>2018-03-23 11:33:59 -0400
commit78b867e26dac3266763f275c1f438da912f33a6e (patch)
tree6a6bcac4a0a7f3fa6fd9ab7a9c499ca00ff69f2c /cpukit/libmisc/monitor/mon-task.c
parentsptests: Add spmutex01 to build (diff)
downloadrtems-78b867e26dac3266763f275c1f438da912f33a6e.tar.bz2
score: replace current and real priority with priority node
Encapsulate the current_priority and real_priority fields of the thread control block with a Thread_Priority_node struct. Propagate modifications throughout the tree where the two fields are directly accessed. Updates #3359.
Diffstat (limited to 'cpukit/libmisc/monitor/mon-task.c')
-rw-r--r--cpukit/libmisc/monitor/mon-task.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/libmisc/monitor/mon-task.c b/cpukit/libmisc/monitor/mon-task.c
index 6007b3f879..015ef6ff45 100644
--- a/cpukit/libmisc/monitor/mon-task.c
+++ b/cpukit/libmisc/monitor/mon-task.c
@@ -29,7 +29,7 @@ rtems_monitor_task_canonical(
canonical_task->argument = rtems_thread->Start.numeric_argument;
canonical_task->stack = rtems_thread->Start.Initial_stack.area;
canonical_task->stack_size = rtems_thread->Start.Initial_stack.size;
- canonical_task->priority = rtems_thread->current_priority;
+ canonical_task->priority = rtems_thread->Priority_node.current_priority;
canonical_task->state = rtems_thread->current_state;
canonical_task->wait_id = rtems_thread->Wait.id;
canonical_task->events = api->pending_events;