summaryrefslogtreecommitdiffstats
path: root/testsuites/smptests/smpload01/init.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-04-10 10:58:27 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-04-11 08:52:54 +0200
commit4bc8d2e71774452e66c619dad98ccab6db8a2324 (patch)
tree9bcbf057fa8bd77816542cab020b9348ba516062 /testsuites/smptests/smpload01/init.c
parentscore: Statically initialize IO manager (diff)
downloadrtems-4bc8d2e71774452e66c619dad98ccab6db8a2324.tar.bz2
rtems: Rename rtems_smp_get_processor_count()
Rename rtems_smp_get_processor_count() in rtems_get_processor_count(). Make rtems_get_processor_count() a function in uni-processor configurations to enable ABI compatibility with SMP configurations.
Diffstat (limited to 'testsuites/smptests/smpload01/init.c')
-rw-r--r--testsuites/smptests/smpload01/init.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/testsuites/smptests/smpload01/init.c b/testsuites/smptests/smpload01/init.c
index b26437c95d..e85d89e780 100644
--- a/testsuites/smptests/smpload01/init.c
+++ b/testsuites/smptests/smpload01/init.c
@@ -81,7 +81,7 @@ static void inherit_obtain_task(rtems_task_argument arg)
test_context *ctx = &test_instance;
rtems_status_code sc;
SMP_barrier_State barrier_state = SMP_BARRIER_STATE_INITIALIZER;
- uint32_t cpu_count = rtems_smp_get_processor_count();
+ uint32_t cpu_count = rtems_get_processor_count();
rtems_counter_ticks delay = (cpu_count - 1 - arg) * ctx->inherit_obtain_delay;
while (true) {
@@ -338,7 +338,7 @@ static void test(void)
sc = rtems_event_transient_receive(RTEMS_WAIT, RTEMS_NO_TIMEOUT);
rtems_test_assert(sc == RTEMS_SUCCESSFUL);
- for (i = 0; i < rtems_smp_get_processor_count(); ++i) {
+ for (i = 0; i < rtems_get_processor_count(); ++i) {
sc = rtems_task_create(
rtems_build_name('I', 'N', 'H', 'O'),
INHERIT_OBTAIN_PRIO_BASE + i,
@@ -373,7 +373,7 @@ static void test(void)
ctx->inherit_release_counter
);
- for (i = 0; i < rtems_smp_get_processor_count(); ++i) {
+ for (i = 0; i < rtems_get_processor_count(); ++i) {
printf(
"priority inheritance obtain count %2" PRIu32 ": %" PRIu64 "\n",
i,