diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2013-12-14 11:56:33 -0600 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2013-12-14 11:56:33 -0600 |
commit | 4402308bfcc883a0942965c3fe212a4a9e54c29b (patch) | |
tree | 2179d5e9ab6e4d0b06b7972d15a7ed477b30d109 /cpukit/score/cpu | |
parent | arm: realview-pbx-a9: Add doxygen (diff) | |
download | rtems-4402308bfcc883a0942965c3fe212a4a9e54c29b.tar.bz2 |
no_cpu/cpusmplock.h: Clean up to be compilable
Diffstat (limited to 'cpukit/score/cpu')
-rw-r--r-- | cpukit/score/cpu/no_cpu/rtems/score/cpusmplock.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cpukit/score/cpu/no_cpu/rtems/score/cpusmplock.h b/cpukit/score/cpu/no_cpu/rtems/score/cpusmplock.h index 479a12afe2..41e68af2ff 100644 --- a/cpukit/score/cpu/no_cpu/rtems/score/cpusmplock.h +++ b/cpukit/score/cpu/no_cpu/rtems/score/cpusmplock.h @@ -64,11 +64,13 @@ static inline void _CPU_SMP_lock_Initialize( CPU_SMP_lock_Control *lock ) */ static inline void _CPU_SMP_lock_Acquire( CPU_SMP_lock_Control *lock ) { +#if 0 unsigned int my_ticket = _Atomic_Fetch_and_increment( &lock->next_ticket ); while ( _Atomic_Load_and_acquire( &lock->now_serving ) != my_ticket ) { _Wait_some_time(); } +#endif } /** @@ -78,7 +80,9 @@ static inline void _CPU_SMP_lock_Acquire( CPU_SMP_lock_Control *lock ) */ static inline void _CPU_SMP_lock_Release( CPU_SMP_lock_Control *lock ) { +#if 0 _Atomic_Store_and_release( &lock->now_serving, lock->now_serving + 1 ); +#endif } /** |