summaryrefslogtreecommitdiffstats
path: root/testsuites/smptests/smpipi01/init.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-07-29 08:34:45 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-07-29 09:03:50 +0200
commit98a57511b687ce1365140481d0c8cf597b6a5d43 (patch)
tree6eda41949a0687730354da414aa01d3c070c1eaf /testsuites/smptests/smpipi01/init.c
parent59168e2ae344cdbfd52f9864812c73aa46ad0c42 (diff)
downloadrtems-98a57511b687ce1365140481d0c8cf597b6a5d43.tar.bz2
score: Add _Per_CPU_Submit_job()
Diffstat (limited to '')
-rw-r--r--testsuites/smptests/smpipi01/init.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/testsuites/smptests/smpipi01/init.c b/testsuites/smptests/smpipi01/init.c
index 18b7a9ae17..e815911539 100644
--- a/testsuites/smptests/smpipi01/init.c
+++ b/testsuites/smptests/smpipi01/init.c
@@ -121,8 +121,7 @@ static void test_send_message_while_processing_a_message(
Per_CPU_Control *cpu_self;
ctx->jobs[0][0].context = &barrier_0_job_context;
- _Per_CPU_Add_job(_Per_CPU_Get_by_index(cpu_index), &ctx->jobs[0][0]);
- _SMP_Send_message(cpu_index, SMP_MESSAGE_PERFORM_JOBS);
+ _Per_CPU_Submit_job(_Per_CPU_Get_by_index(cpu_index), &ctx->jobs[0][0]);
/* (A) */
barrier(ctx, bs);
@@ -196,8 +195,7 @@ static void test_send_message_flood(
ctx->jobs[cpu_index][0].context = &counter_0_job_context;
ctx->jobs[cpu_index][1].context = &counter_1_job_context;
- _Per_CPU_Add_job(cpu, &ctx->jobs[cpu_index][0]);
- _SMP_Send_message(cpu_index, SMP_MESSAGE_PERFORM_JOBS);
+ _Per_CPU_Submit_job(cpu, &ctx->jobs[cpu_index][0]);
}
for (cpu_index = 0; cpu_index < cpu_count; ++cpu_index) {