forked from Imagelibrary/rtems
score: Rename rtems_smp_get_number_of_processors()
Rename in rtems_smp_get_processor_count(). Always provide <rtems/score/smp.h> and <rtems/rtems/smp.h>. Add _SMP_Get_processor_count(). This function will be a compile time constant defined to be one on uni-processor configurations. This allows iterations over all processors without overhead on uni-processor configurations.
This commit is contained in:
@@ -130,7 +130,7 @@ void bsp_smp_broadcast_interrupt(void)
|
||||
int max_cpus;
|
||||
|
||||
cpu = bsp_smp_processor_id();
|
||||
max_cpus = rtems_smp_get_number_of_processors();
|
||||
max_cpus = rtems_smp_get_processor_count();
|
||||
|
||||
for ( dest_cpu=0 ; dest_cpu < max_cpus ; dest_cpu++ ) {
|
||||
if ( cpu == dest_cpu )
|
||||
|
||||
Reference in New Issue
Block a user