diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-01-13 09:45:59 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-01-13 09:45:59 +0100 |
commit | 4a03e752189b17f4d1d3f590f66125293cb2b4df (patch) | |
tree | b5ad2bfcc604a2848c69bc6ffc4b52d1b61a8825 /cpukit/posix/src/pspinunlock.c | |
parent | configure: Remove HAVE_THREADS_H support (diff) | |
download | rtems-4a03e752189b17f4d1d3f590f66125293cb2b4df.tar.bz2 |
configure: Remove SIZEOF_PTHREAD_SPINLOCK_T
Diffstat (limited to 'cpukit/posix/src/pspinunlock.c')
-rw-r--r-- | cpukit/posix/src/pspinunlock.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/cpukit/posix/src/pspinunlock.c b/cpukit/posix/src/pspinunlock.c index b508df7384..74baa7cad7 100644 --- a/cpukit/posix/src/pspinunlock.c +++ b/cpukit/posix/src/pspinunlock.c @@ -31,7 +31,6 @@ int pthread_spin_unlock( pthread_spinlock_t *lock ) the_spinlock = _POSIX_Spinlock_Get( lock ); level = the_spinlock->interrupt_state; -#if defined(POSIX_SPINLOCKS_ARE_SELF_CONTAINED) #if defined(RTEMS_SMP) _SMP_ticket_lock_Release( &the_spinlock->Lock, @@ -39,17 +38,5 @@ int pthread_spin_unlock( pthread_spinlock_t *lock ) ); #endif _ISR_Local_enable( level ); -#else - if ( --_POSIX_Spinlock_Nest_level == 0 ) { -#if defined(RTEMS_SMP) - _POSIX_Spinlock_Owner = 0xffffffff; - _SMP_ticket_lock_Release( - &the_spinlock->Lock, - &_Per_CPU_Get()->Lock_stats_context - ); -#endif - _ISR_Local_enable( level ); - } -#endif return 0; } |