diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-07-03 11:46:12 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-07-06 15:29:16 +0200 |
commit | 3dfe55ee154b6053e936e7b458206b71aad51caa (patch) | |
tree | b455d560a13cccc855c3259c67f3fafa20f4fb97 /cpukit/score/src/smp.c | |
parent | xz: Suppress attribute warnings (diff) | |
download | rtems-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 'cpukit/score/src/smp.c')
-rw-r--r-- | cpukit/score/src/smp.c | 8 |
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(); |