diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-03-18 14:03:01 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-03-18 15:36:58 +0100 |
commit | 5a5fb3b9d6d99d6751d129458217f1a3b5b85ff8 (patch) | |
tree | 9f2296b7e4abaa0da454caea84e2fcbc0eb49fd2 /cpukit/posix/src/pspininit.c | |
parent | score: Add _Objects_Get_by_name() (diff) | |
download | rtems-5a5fb3b9d6d99d6751d129458217f1a3b5b85ff8.tar.bz2 |
score: Avoid Giant lock for CORE spinlock
Use an ISR lock to protect the spinlock state. Remove empty attributes.
Update #2555.
Diffstat (limited to 'cpukit/posix/src/pspininit.c')
-rw-r--r-- | cpukit/posix/src/pspininit.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/cpukit/posix/src/pspininit.c b/cpukit/posix/src/pspininit.c index 02b07c8468..bc131e2e81 100644 --- a/cpukit/posix/src/pspininit.c +++ b/cpukit/posix/src/pspininit.c @@ -47,7 +47,6 @@ int pthread_spin_init( ) { POSIX_Spinlock_Control *the_spinlock; - CORE_spinlock_Attributes attributes; if ( !spinlock ) return EINVAL; @@ -67,9 +66,7 @@ int pthread_spin_init( return EAGAIN; } - _CORE_spinlock_Initialize_attributes( &attributes ); - - _CORE_spinlock_Initialize( &the_spinlock->Spinlock, &attributes ); + _CORE_spinlock_Initialize( &the_spinlock->Spinlock ); _Objects_Open_u32( &_POSIX_Spinlock_Information, &the_spinlock->Object, 0 ); |