summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/apimutexunlock.c
diff options
context:
space:
mode:
authorJennifer Averett <Jennifer.Averett@OARcorp.com>2011-08-02 13:38:25 +0000
committerJennifer Averett <Jennifer.Averett@OARcorp.com>2011-08-02 13:38:25 +0000
commit6ef32a32b2b14f25ff5582fd7fa025381eb43966 (patch)
tree255a6993693bfb7b720dd45b6748482c62092bb5 /cpukit/score/src/apimutexunlock.c
parent2011-08-02 Petr Benes <benesp16@fel.cvut.cz> (diff)
downloadrtems-6ef32a32b2b14f25ff5582fd7fa025381eb43966.tar.bz2
2011-08-02 Jennifer.Averett <Jennifer.Averett@OARcorp.com>
PR 1872 * score/src/apimutexlock.c, score/src/apimutexunlock.c: Added smp support to apimutex.
Diffstat (limited to 'cpukit/score/src/apimutexunlock.c')
-rw-r--r--cpukit/score/src/apimutexunlock.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/cpukit/score/src/apimutexunlock.c b/cpukit/score/src/apimutexunlock.c
index ca824a6e6c..7ebfb90946 100644
--- a/cpukit/score/src/apimutexunlock.c
+++ b/cpukit/score/src/apimutexunlock.c
@@ -20,7 +20,10 @@ void _API_Mutex_Unlock(
API_Mutex_Control *the_mutex
)
{
- _Thread_Disable_dispatch();
+ /* Dispatch is already disabled in SMP while lock is held. */
+ #if !defined(RTEMS_SMP)
+ _Thread_Disable_dispatch();
+ #endif
_CORE_mutex_Surrender(
&the_mutex->Mutex,
the_mutex->Object.id,