summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/apimutexunlock.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-13 15:25:06 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-31 08:29:43 +0200
commitfb7199d3a27036e2de408caef1a8c755dc986050 (patch)
tree5fa4323d16c60aa80a276afeb29131205df69db5 /cpukit/score/src/apimutexunlock.c
parentscore: Thread life cycle re-implementation (diff)
downloadrtems-fb7199d3a27036e2de408caef1a8c755dc986050.tar.bz2
score: Relax Giant lock usage for API mutexes
It is no longer necessary to protect the workspace allocations with the Giant lock due to the thread life cycle re-implementation.
Diffstat (limited to 'cpukit/score/src/apimutexunlock.c')
-rw-r--r--cpukit/score/src/apimutexunlock.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/cpukit/score/src/apimutexunlock.c b/cpukit/score/src/apimutexunlock.c
index 354033c5a4..43bdfe8bbe 100644
--- a/cpukit/score/src/apimutexunlock.c
+++ b/cpukit/score/src/apimutexunlock.c
@@ -27,10 +27,7 @@ void _API_Mutex_Unlock(
API_Mutex_Control *the_mutex
)
{
- /* Dispatch is already disabled in SMP while lock is held. */
- #if !defined(RTEMS_SMP)
- _Thread_Disable_dispatch();
- #endif
+ _Thread_Disable_dispatch();
_CORE_mutex_Surrender(
&the_mutex->Mutex,
the_mutex->Object.id,