[rtems commit] score: Fix SMP startup

Sebastian Huber sebh at rtems.org
Wed May 7 15:26:20 UTC 2014


Module:    rtems
Branch:    master
Commit:    6c36946fea7bace4006168fc02e35aacd1d2e4a2
Changeset: http://git.rtems.org/rtems/commit/?id=6c36946fea7bace4006168fc02e35aacd1d2e4a2

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed May  7 14:22:56 2014 +0200

score: Fix SMP startup

---

 cpukit/score/src/smp.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/cpukit/score/src/smp.c b/cpukit/score/src/smp.c
index 2f86c6e..af0eb18 100644
--- a/cpukit/score/src/smp.c
+++ b/cpukit/score/src/smp.c
@@ -111,7 +111,9 @@ void _SMP_Request_start_multitasking( void )
   for ( cpu_index = 0 ; cpu_index < cpu_count ; ++cpu_index ) {
     Per_CPU_Control *cpu = _Per_CPU_Get_by_index( cpu_index );
 
-    _Per_CPU_State_change( cpu, PER_CPU_STATE_REQUEST_START_MULTITASKING );
+    if ( _Per_CPU_Is_processor_started( cpu ) ) {
+      _Per_CPU_State_change( cpu, PER_CPU_STATE_REQUEST_START_MULTITASKING );
+    }
   }
 }
 




More information about the vc mailing list