diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-06-06 15:42:47 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-06-07 17:06:43 +0200 |
commit | 7cf2ec6f0d1e8ae5c8317d42c53505c27f722582 (patch) | |
tree | 1064b275643763e670fcaa2c8e431b17bae01249 /cpukit/score | |
parent | score: Add and use _Objects_Put() (diff) | |
download | rtems-7cf2ec6f0d1e8ae5c8317d42c53505c27f722582.tar.bz2 |
smp: Set state PER_CPU_STATE_UP on main processor
Diffstat (limited to 'cpukit/score')
-rw-r--r-- | cpukit/score/src/smp.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/cpukit/score/src/smp.c b/cpukit/score/src/smp.c index d8ceba45ea..21b39d3bb2 100644 --- a/cpukit/score/src/smp.c +++ b/cpukit/score/src/smp.c @@ -150,11 +150,13 @@ void _SMP_Request_other_cores_to_perform_first_context_switch( void ) int cpu; for ( cpu = 0 ; cpu < ncpus ; ++cpu ) { + Per_CPU_Control *per_cpu = &_Per_CPU_Information[ cpu ]; + if ( cpu != self ) { - _Per_CPU_Change_state( - &_Per_CPU_Information[ cpu ], - PER_CPU_STATE_BEGIN_MULTITASKING - ); + _Per_CPU_Change_state( per_cpu, PER_CPU_STATE_BEGIN_MULTITASKING ); + } else { + + _Per_CPU_Change_state( per_cpu, PER_CPU_STATE_UP ); } } } |