[rtems commit] no_cpu/cpusmplock.h: Clean up to be compilable
Joel Sherrill
joel at rtems.org
Sat Dec 14 17:49:29 UTC 2013
Module: rtems
Branch: master
Commit: 4402308bfcc883a0942965c3fe212a4a9e54c29b
Changeset: http://git.rtems.org/rtems/commit/?id=4402308bfcc883a0942965c3fe212a4a9e54c29b
Author: Joel Sherrill <joel.sherrill at oarcorp.com>
Date: Sat Dec 14 11:56:33 2013 -0600
no_cpu/cpusmplock.h: Clean up to be compilable
---
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 479a12a..41e68af 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
}
/**
More information about the vc
mailing list