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:
@@ -36,7 +36,7 @@ rtems_task Init(
|
||||
locked_print_initialize();
|
||||
locked_printf( "\n\n*** TEST SMP05 ***\n" );
|
||||
|
||||
for ( i=0; i<rtems_smp_get_number_of_processors() ; i++ ) {
|
||||
for ( i=0; i<rtems_smp_get_processor_count() ; i++ ) {
|
||||
ch = '1' + i;
|
||||
|
||||
status = rtems_task_create(
|
||||
|
||||
Reference in New Issue
Block a user