summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/smp.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-07-03 11:46:12 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-07-06 15:29:16 +0200
commit3dfe55ee154b6053e936e7b458206b71aad51caa (patch)
treeb455d560a13cccc855c3259c67f3fafa20f4fb97 /cpukit/score/src/smp.c
parentxz: Suppress attribute warnings (diff)
downloadrtems-3dfe55ee154b6053e936e7b458206b71aad51caa.tar.bz2
score: Use <sys/bitset.h> for Processor_mask
Implement the Processor_mask via <sys/bitset.h>. Provide _Processor_mask_To_uint32_t() to enable its use in device specific routines, e.g. interrupt affinity register in an interrupt controller. Update #3059.
Diffstat (limited to '')
-rw-r--r--cpukit/score/src/smp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpukit/score/src/smp.c b/cpukit/score/src/smp.c
index 434483c5ad..a69b7ed46a 100644
--- a/cpukit/score/src/smp.c
+++ b/cpukit/score/src/smp.c
@@ -101,7 +101,7 @@ static void _SMP_Start_processors( uint32_t cpu_count )
cpu->Scheduler.control = scheduler;
cpu->Scheduler.context = context;
- _Processor_mask_Set( _SMP_Online_processors, cpu_index );
+ _Processor_mask_Set( &_SMP_Online_processors, cpu_index );
}
}
}
@@ -217,7 +217,7 @@ void _SMP_Send_message_broadcast( unsigned long message )
for ( cpu_index = 0 ; cpu_index < cpu_count ; ++cpu_index ) {
if (
cpu_index != cpu_index_self
- && _Processor_mask_Is_set( _SMP_Online_processors, cpu_index )
+ && _Processor_mask_Is_set( &_SMP_Online_processors, cpu_index )
) {
_SMP_Send_message( cpu_index, message );
}
@@ -225,8 +225,8 @@ void _SMP_Send_message_broadcast( unsigned long message )
}
void _SMP_Send_message_multicast(
- const Processor_mask targets,
- unsigned long message
+ const Processor_mask *targets,
+ unsigned long message
)
{
uint32_t cpu_count = _SMP_Get_processor_count();