summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-05-07 14:22:56 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-05-07 14:26:33 +0200
commit6c36946fea7bace4006168fc02e35aacd1d2e4a2 (patch)
tree44c2de724c3f4f23d698142a79e3fb2af3229377
parentscore: Implement forced thread migration (diff)
downloadrtems-6c36946fea7bace4006168fc02e35aacd1d2e4a2.tar.bz2
score: Fix SMP startup
-rw-r--r--cpukit/score/src/smp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/cpukit/score/src/smp.c b/cpukit/score/src/smp.c
index 2f86c6e175..af0eb183e1 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 );
+ }
}
}