From 78b867e26dac3266763f275c1f438da912f33a6e Mon Sep 17 00:00:00 2001 From: Gedare Bloom Date: Thu, 21 Dec 2017 11:49:30 -0500 Subject: 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. --- cpukit/rtems/src/tasksetpriority.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cpukit/rtems/src/tasksetpriority.c') diff --git a/cpukit/rtems/src/tasksetpriority.c b/cpukit/rtems/src/tasksetpriority.c index 7499d176e0..6f365f4ab7 100644 --- a/cpukit/rtems/src/tasksetpriority.c +++ b/cpukit/rtems/src/tasksetpriority.c @@ -72,11 +72,11 @@ rtems_status_code rtems_task_set_priority( case OBJECTS_LOCAL: /* XXX need helper to "convert" from core priority */ - *old_priority = the_thread->current_priority; + *old_priority = the_thread->Priority_node.current_priority; if ( new_priority != RTEMS_CURRENT_PRIORITY ) { - the_thread->real_priority = new_priority; + the_thread->Priority_node.real_priority = new_priority; if ( the_thread->resource_count == 0 || - the_thread->current_priority > new_priority ) + the_thread->Priority_node.current_priority > new_priority ) _Thread_Change_priority( the_thread, new_priority, false ); } _Thread_Enable_dispatch(); -- cgit v1.2.3