diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-05-24 02:44:58 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-05-24 02:44:58 +0000 |
commit | dacdda304b8a7a2a10bc03ae36b1d75b728ba149 (patch) | |
tree | b709b10d06bb4303fcf2f08511ca096ea2d5a0aa /cpukit/score/src/smplock.c | |
parent | 2011-05-23 Jennifer Averett <Jennifer.Averett@OARcorp.com> (diff) | |
download | rtems-dacdda304b8a7a2a10bc03ae36b1d75b728ba149.tar.bz2 |
Remove white-spaces.
Diffstat (limited to 'cpukit/score/src/smplock.c')
-rw-r--r-- | cpukit/score/src/smplock.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cpukit/score/src/smplock.c b/cpukit/score/src/smplock.c index 91589b5c54..dc0836cd3a 100644 --- a/cpukit/score/src/smplock.c +++ b/cpukit/score/src/smplock.c @@ -35,7 +35,7 @@ ISR_Level _SMP_lock_spinlock_simple_Obtain( ISR_Level level; uint32_t value = 1; uint32_t previous; - + /* Note: Disable provides an implicit memory barrier. */ _ISR_Disable( level ); do { @@ -72,7 +72,7 @@ ISR_Level _SMP_lock_spinlock_nested_Obtain( int cpu_id; /* Note: Disable provides an implicit memory barrier. */ - _ISR_Disable( level ); + _ISR_Disable( level ); cpu_id = bsp_smp_processor_id(); @@ -81,7 +81,7 @@ ISR_Level _SMP_lock_spinlock_nested_Obtain( lock->count++; return level; } - + do { SMP_CPU_SWAP( lock, value, previous ); } while (previous == 1); @@ -102,6 +102,6 @@ void _SMP_lock_spinlock_nested_Release( printk ("Releasing spinlock when count is already zero?!?!\n"); #endif lock->count--; - - _ISR_Enable( level ); + + _ISR_Enable( level ); } |