summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/smp.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-04-05 11:28:46 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-04-05 11:28:46 +0200
commit46f05b92b20bd5d38bb952f6aaad6a7783ce36c9 (patch)
treebaeecf308721459eb76970794b2935aab8a7affe /cpukit/score/src/smp.c
parentspcache01: Instruction cache invalidate workaround (diff)
downloadrtems-46f05b92b20bd5d38bb952f6aaad6a7783ce36c9.tar.bz2
SMP: Simplify SMP multicast actions
Diffstat (limited to '')
-rw-r--r--cpukit/score/src/smp.c7
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 );
}
}