diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-02-18 08:36:16 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-03-04 13:36:10 +0100 |
commit | 90d8567d34a6d80da04b1cb37b667a3173f584c4 (patch) | |
tree | 221e66b9da1dd9dd79d01e507f0026bfb477b810 /cpukit/score/src/smp.c | |
parent | score: Add _SMP_Before_multitasking_action() (diff) | |
download | rtems-90d8567d34a6d80da04b1cb37b667a3173f584c4.tar.bz2 |
score: Distribute clock tick to all online CPUs
Update #2554.
Diffstat (limited to 'cpukit/score/src/smp.c')
-rw-r--r-- | cpukit/score/src/smp.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cpukit/score/src/smp.c b/cpukit/score/src/smp.c index 4dacd4ed5c..9d9507d1b9 100644 --- a/cpukit/score/src/smp.c +++ b/cpukit/score/src/smp.c @@ -189,7 +189,10 @@ void _SMP_Send_message_broadcast( unsigned long message ) _Assert( _Debug_Is_thread_dispatching_allowed() ); for ( cpu_index = 0 ; cpu_index < cpu_count ; ++cpu_index ) { - if ( cpu_index != cpu_index_self ) { + if ( + cpu_index != cpu_index_self + && _Processor_mask_Is_set( _SMP_Online_processors, cpu_index ) + ) { _SMP_Send_message( cpu_index, message ); } } |