summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/include/rtems
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-01-13 09:45:59 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-01-13 09:45:59 +0100
commit4a03e752189b17f4d1d3f590f66125293cb2b4df (patch)
treeb5ad2bfcc604a2848c69bc6ffc4b52d1b61a8825 /cpukit/posix/include/rtems
parentconfigure: Remove HAVE_THREADS_H support (diff)
downloadrtems-4a03e752189b17f4d1d3f590f66125293cb2b4df.tar.bz2
configure: Remove SIZEOF_PTHREAD_SPINLOCK_T
Diffstat (limited to 'cpukit/posix/include/rtems')
-rw-r--r--cpukit/posix/include/rtems/posix/spinlockimpl.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/cpukit/posix/include/rtems/posix/spinlockimpl.h b/cpukit/posix/include/rtems/posix/spinlockimpl.h
index c251e455e0..d28e0391fc 100644
--- a/cpukit/posix/include/rtems/posix/spinlockimpl.h
+++ b/cpukit/posix/include/rtems/posix/spinlockimpl.h
@@ -34,10 +34,6 @@
extern "C" {
#endif
-#if SIZEOF_PTHREAD_SPINLOCK_T > 4
-#define POSIX_SPINLOCKS_ARE_SELF_CONTAINED
-#endif
-
typedef struct {
#if defined(RTEMS_SMP)
SMP_ticket_lock_Control Lock;
@@ -47,26 +43,11 @@ typedef struct {
ISR_Level interrupt_state;
} POSIX_Spinlock_Control;
-#if !defined(POSIX_SPINLOCKS_ARE_SELF_CONTAINED)
-extern POSIX_Spinlock_Control _POSIX_Spinlock_Global;
-
-extern int _POSIX_Spinlock_Nest_level;
-
-#if defined(RTEMS_SMP)
-extern uint32_t _POSIX_Spinlock_Owner;
-#endif
-#endif
-
RTEMS_INLINE_ROUTINE POSIX_Spinlock_Control *_POSIX_Spinlock_Get(
pthread_spinlock_t *lock
)
{
-#if defined(POSIX_SPINLOCKS_ARE_SELF_CONTAINED)
return (POSIX_Spinlock_Control *) lock;
-#else
- (void) lock;
- return &_POSIX_Spinlock_Global;
-#endif
}
#ifdef __cplusplus