From edde99bd213d20c55430dd29089e0d8a807ab6d8 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 14 Jun 2013 14:26:34 +0200 Subject: score: Rename rtems_smp_get_number_of_processors() Rename in rtems_smp_get_processor_count(). Always provide and . 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. --- testsuites/smptests/smp02/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testsuites/smptests/smp02/init.c') diff --git a/testsuites/smptests/smp02/init.c b/testsuites/smptests/smp02/init.c index 968d90c8af..a5ad24bdf5 100644 --- a/testsuites/smptests/smp02/init.c +++ b/testsuites/smptests/smp02/init.c @@ -45,7 +45,7 @@ rtems_task Init( status = rtems_semaphore_obtain( Semaphore, RTEMS_WAIT, 0); directive_failed( status,"rtems_semaphore_obtain of SEM1\n"); - for ( i=1; i < rtems_smp_get_number_of_processors(); i++ ){ + for ( i=1; i < rtems_smp_get_processor_count(); i++ ){ /* Create and start tasks for each CPU */ ch = '0' + i; -- cgit v1.2.3