diff options
Diffstat (limited to 'cpukit/rtems/src')
-rw-r--r-- | cpukit/rtems/src/tasksetpriority.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/cpukit/rtems/src/tasksetpriority.c b/cpukit/rtems/src/tasksetpriority.c index 6f365f4ab7..2b5b0625ec 100644 --- a/cpukit/rtems/src/tasksetpriority.c +++ b/cpukit/rtems/src/tasksetpriority.c @@ -75,9 +75,7 @@ rtems_status_code rtems_task_set_priority( *old_priority = the_thread->Priority_node.current_priority; if ( new_priority != RTEMS_CURRENT_PRIORITY ) { the_thread->Priority_node.real_priority = new_priority; - if ( the_thread->resource_count == 0 || - the_thread->Priority_node.current_priority > new_priority ) - _Thread_Change_priority( the_thread, new_priority, false ); + _Thread_Evaluate_priority( the_thread ); } _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; |