summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/coremutexseize.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-28 09:24:28 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-31 08:29:42 +0200
commitc2225d735662f9d79bde7967418237b190dcb22b (patch)
tree2d7c05e68aa532ae4cd6ccbef56e473537a66896 /cpukit/score/src/coremutexseize.c
parentscore: Add _Scheduler_Highest_priority_of_two() (diff)
downloadrtems-c2225d735662f9d79bde7967418237b190dcb22b.tar.bz2
score: Add _Scheduler_Change_priority_if_higher()
Add _Scheduler_Set_priority_if_higher().
Diffstat (limited to 'cpukit/score/src/coremutexseize.c')
-rw-r--r--cpukit/score/src/coremutexseize.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/cpukit/score/src/coremutexseize.c b/cpukit/score/src/coremutexseize.c
index 5997293bf2..d6e817c4e2 100644
--- a/cpukit/score/src/coremutexseize.c
+++ b/cpukit/score/src/coremutexseize.c
@@ -53,15 +53,11 @@ void _CORE_mutex_Seize_interrupt_blocking(
{
if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ) {
- if ( _Scheduler_Is_priority_higher_than(
- executing->current_priority,
- the_mutex->holder->current_priority)) {
- _Thread_Change_priority(
- the_mutex->holder,
- executing->current_priority,
- false
- );
- }
+ _Scheduler_Change_priority_if_higher(
+ the_mutex->holder,
+ executing->current_priority,
+ false
+ );
}
the_mutex->blocked_count++;