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/sptests/spsize/size.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'testsuites/sptests/spsize/size.c') diff --git a/testsuites/sptests/spsize/size.c b/testsuites/sptests/spsize/size.c index 09a881a80c..2a77927dda 100644 --- a/testsuites/sptests/spsize/size.c +++ b/testsuites/sptests/spsize/size.c @@ -341,11 +341,7 @@ uninitialized = /*partmp.h*/ 0 + #endif -#if defined(RTEMS_SMP) -/*percpu.h*/ (_SMP_Processor_count * sizeof(Per_CPU_Control)) + -#else -/*percpu.h*/ (sizeof (Per_CPU_Control) ) + -#endif +/*percpu.h*/ (_SMP_Get_processor_count() * sizeof(Per_CPU_Control)) + /*ratemon.h*/ (sizeof _Rate_monotonic_Information) + -- cgit v1.2.3