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:
Sebastian Huber
2013-06-14 14:26:34 +02:00
parent 5c78940d94
commit edde99bd21
28 changed files with 118 additions and 121 deletions

View File

@@ -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 )