diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-06-14 14:26:34 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-06-14 16:26:07 +0200 |
commit | edde99bd213d20c55430dd29089e0d8a807ab6d8 (patch) | |
tree | 186fbfb97c296606a1584fd224777b3f6ed5f98e /testsuites/sptests/spsize | |
parent | 5c78940d9421e1c7f2cc5d44eddbf1dca0720ee8 (diff) |
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.
Diffstat (limited to 'testsuites/sptests/spsize')
-rw-r--r-- | testsuites/sptests/spsize/size.c | 6 |
1 files changed, 1 insertions, 5 deletions
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) + |