summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/apimutexlock.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-09-27 15:23:00 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-09-27 15:23:00 +0200
commit8797c76addf22a2f0ffc3717ff977695e35b9b0b (patch)
tree75489c28e223e9dcec1dde6ff335ddd595d71f61 /cpukit/score/src/apimutexlock.c
parentscore: Simplify ISR lock name (diff)
downloadrtems-8797c76addf22a2f0ffc3717ff977695e35b9b0b.tar.bz2
score: Unify CORE mutex seize/surrender
Use the Thread_Control::resource_count for the no protocol mutexes. Merge the no protocol and priority inherit CORE mutex seize/surrender operations.
Diffstat (limited to 'cpukit/score/src/apimutexlock.c')
-rw-r--r--cpukit/score/src/apimutexlock.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cpukit/score/src/apimutexlock.c b/cpukit/score/src/apimutexlock.c
index cf90a76f1e..879562d9f0 100644
--- a/cpukit/score/src/apimutexlock.c
+++ b/cpukit/score/src/apimutexlock.c
@@ -36,6 +36,7 @@ void _API_Mutex_Lock( API_Mutex_Control *the_mutex )
_Thread_queue_Context_set_no_timeout( &queue_context );
_CORE_recursive_mutex_Seize(
&the_mutex->Mutex,
+ CORE_MUTEX_TQ_PRIORITY_INHERIT_OPERATIONS,
_Thread_Executing,
true,
_CORE_recursive_mutex_Seize_nested,