summaryrefslogtreecommitdiff
path: root/cpukit/score/src/threadchangepriority.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/src/threadchangepriority.c')
-rw-r--r--cpukit/score/src/threadchangepriority.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/score/src/threadchangepriority.c b/cpukit/score/src/threadchangepriority.c
index 97e7950693..3429e1a88d 100644
--- a/cpukit/score/src/threadchangepriority.c
+++ b/cpukit/score/src/threadchangepriority.c
@@ -120,7 +120,7 @@ static bool _Thread_Raise_priority_filter(
)
{
return _Thread_Priority_less_than(
- the_thread->current_priority,
+ _Thread_Get_priority( the_thread ),
*new_priority
);
}
@@ -149,7 +149,7 @@ static bool _Thread_Restore_priority_filter(
the_thread->priority_restore_hint = false;
- return *new_priority != the_thread->current_priority;
+ return *new_priority != _Thread_Get_priority( the_thread );
}
void _Thread_Restore_priority( Thread_Control *the_thread )