diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-30 10:41:22 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-30 16:16:23 +0200 |
commit | 3692095f2c922d35482af0a22d20d21f84c0159b (patch) | |
tree | a25d29d9dcfe60b1092ec7844aa3febf66a788be /cpukit/rtems/src/semobtain.c | |
parent | score: Rework CORE inherit priority mutex (diff) | |
download | rtems-3692095f2c922d35482af0a22d20d21f84c0159b.tar.bz2 |
rtems: Move MrsP semaphore operations
Move MrsP semaphore operations to a less prominent location. Fix field
name.
Diffstat (limited to 'cpukit/rtems/src/semobtain.c')
-rw-r--r-- | cpukit/rtems/src/semobtain.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/cpukit/rtems/src/semobtain.c b/cpukit/rtems/src/semobtain.c index 80bb199dc2..4e8b5f3b17 100644 --- a/cpukit/rtems/src/semobtain.c +++ b/cpukit/rtems/src/semobtain.c @@ -40,7 +40,7 @@ THREAD_QUEUE_OBJECT_ASSERT( #if defined(RTEMS_SMP) THREAD_QUEUE_OBJECT_ASSERT( Semaphore_Control, - Core_control.mrsp.Wait_queue + Core_control.MRSP.Wait_queue ); #endif @@ -70,17 +70,6 @@ rtems_status_code rtems_semaphore_obtain( wait = !_Options_Is_no_wait( option_set ); switch ( the_semaphore->variant ) { -#if defined(RTEMS_SMP) - case SEMAPHORE_VARIANT_MRSP: - status = _MRSP_Seize( - &the_semaphore->Core_control.mrsp, - executing, - wait, - timeout, - &queue_context - ); - break; -#endif case SEMAPHORE_VARIANT_MUTEX_INHERIT_PRIORITY: status = _CORE_recursive_mutex_Seize( &the_semaphore->Core_control.Mutex.Recursive, @@ -112,6 +101,17 @@ rtems_status_code rtems_semaphore_obtain( &queue_context ); break; +#if defined(RTEMS_SMP) + case SEMAPHORE_VARIANT_MRSP: + status = _MRSP_Seize( + &the_semaphore->Core_control.MRSP, + executing, + wait, + timeout, + &queue_context + ); + break; +#endif default: _Assert( the_semaphore->variant == SEMAPHORE_VARIANT_SIMPLE_BINARY |