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:
@@ -73,7 +73,7 @@ rtems_task Init(
|
||||
/* Show that the init task is running on this cpu */
|
||||
PrintTaskInfo( "Init", &time );
|
||||
|
||||
for ( i=1; i <= rtems_smp_get_number_of_processors() *3; i++ ) {
|
||||
for ( i=1; i <= rtems_smp_get_processor_count() *3; i++ ) {
|
||||
|
||||
sprintf(ch, "%02" PRId32, i );
|
||||
status = rtems_task_create(
|
||||
|
||||
Reference in New Issue
Block a user