diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-04-05 11:28:46 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-04-05 11:28:46 +0200 |
commit | 46f05b92b20bd5d38bb952f6aaad6a7783ce36c9 (patch) | |
tree | baeecf308721459eb76970794b2935aab8a7affe /cpukit/score/src/smp.c | |
parent | spcache01: Instruction cache invalidate workaround (diff) | |
download | rtems-46f05b92b20bd5d38bb952f6aaad6a7783ce36c9.tar.bz2 |
SMP: Simplify SMP multicast actions
Diffstat (limited to 'cpukit/score/src/smp.c')
-rw-r--r-- | cpukit/score/src/smp.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cpukit/score/src/smp.c b/cpukit/score/src/smp.c index ab9c7a6115..434483c5ad 100644 --- a/cpukit/score/src/smp.c +++ b/cpukit/score/src/smp.c @@ -225,16 +225,15 @@ void _SMP_Send_message_broadcast( unsigned long message ) } void _SMP_Send_message_multicast( - const size_t setsize, - const cpu_set_t *cpus, - unsigned long message + const Processor_mask targets, + unsigned long message ) { uint32_t cpu_count = _SMP_Get_processor_count(); uint32_t cpu_index; for ( cpu_index = 0 ; cpu_index < cpu_count ; ++cpu_index ) { - if ( CPU_ISSET_S( cpu_index, setsize, cpus ) ) { + if ( _Processor_mask_Is_set( targets, cpu_index ) ) { _SMP_Send_message( cpu_index, message ); } } |