From 4a03e752189b17f4d1d3f590f66125293cb2b4df Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 13 Jan 2017 09:45:59 +0100 Subject: configure: Remove SIZEOF_PTHREAD_SPINLOCK_T --- cpukit/posix/include/rtems/posix/spinlockimpl.h | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'cpukit/posix/include/rtems') 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 -- cgit v1.2.3