diff options
author | Jennifer Averett <Jennifer.Averett@OARcorp.com> | 2011-05-20 12:36:01 +0000 |
---|---|---|
committer | Jennifer Averett <Jennifer.Averett@OARcorp.com> | 2011-05-20 12:36:01 +0000 |
commit | a8d7e2ab16f6c4a1a6e4f90010651b016ac6f7c1 (patch) | |
tree | 4123cb2913b2db3224b9c75ab8f9a49c60ea498c /cpukit/score/src/smp.c | |
parent | 2011-05-20 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff) | |
download | rtems-a8d7e2ab16f6c4a1a6e4f90010651b016ac6f7c1.tar.bz2 |
2011-05-20 Jennifer Averett <Jennifer.Averett@OARcorp.com>
PR 1787/cpukit
* score/include/rtems/score/percpu.h,
score/include/rtems/score/smplock.h, score/src/smp.c,
score/src/smplock.c: Add nesting support to smp spinlock.
Diffstat (limited to 'cpukit/score/src/smp.c')
-rw-r--r-- | cpukit/score/src/smp.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cpukit/score/src/smp.c b/cpukit/score/src/smp.c index 068285c114..9714add5ea 100644 --- a/cpukit/score/src/smp.c +++ b/cpukit/score/src/smp.c @@ -80,10 +80,10 @@ void rtems_smp_process_interrupt(void) cpu = bsp_smp_processor_id(); - level = _SMP_lock_Spinlock_Obtain( &_Per_CPU_Information[cpu].lock ); + level = _SMP_lock_spinlock_simple_Obtain( &_Per_CPU_Information[cpu].lock ); message = _Per_CPU_Information[cpu].message; _Per_CPU_Information[cpu].message &= ~message; - _SMP_lock_Spinlock_Release( &_Per_CPU_Information[cpu].lock, level ); + _SMP_lock_spinlock_simple_Release( &_Per_CPU_Information[cpu].lock, level ); #if defined(SMP_DEBUG) { @@ -126,9 +126,9 @@ void rtems_smp_send_message( { ISR_Level level; - level = _SMP_lock_Spinlock_Obtain( &_Per_CPU_Information[cpu].lock ); + level = _SMP_lock_spinlock_simple_Obtain( &_Per_CPU_Information[cpu].lock ); _Per_CPU_Information[cpu].message |= message; - _SMP_lock_Spinlock_Release( &_Per_CPU_Information[cpu].lock, level ); + _SMP_lock_spinlock_simple_Release( &_Per_CPU_Information[cpu].lock, level ); bsp_smp_interrupt_cpu( cpu ); } @@ -145,9 +145,9 @@ void rtems_smp_broadcast_message( for ( dest_cpu=0 ; dest_cpu < _SMP_Processor_count; dest_cpu++ ) { if ( cpu == dest_cpu ) continue; - level = _SMP_lock_Spinlock_Obtain( &_Per_CPU_Information[cpu].lock ); + level = _SMP_lock_spinlock_simple_Obtain( &_Per_CPU_Information[cpu].lock ); _Per_CPU_Information[dest_cpu].message |= message; - _SMP_lock_Spinlock_Release( &_Per_CPU_Information[cpu].lock, level ); + _SMP_lock_spinlock_simple_Release( &_Per_CPU_Information[cpu].lock, level ); } bsp_smp_broadcast_interrupt(); } |