summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-11-19 12:49:35 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-11-23 15:18:39 +0100
commit4673843934add86a3de5bee4986de30b36a58cd8 (patch)
treefc1f027a03b312692614fa7581cc4a73d4f84be7
parente4319660e0ba21b1cd718002f750e276828918cf (diff)
testsuites/validation/tc-sem-mrsp-obtain.c
-rw-r--r--testsuites/validation/tc-sem-mrsp-obtain.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/testsuites/validation/tc-sem-mrsp-obtain.c b/testsuites/validation/tc-sem-mrsp-obtain.c
index 7425f08f03..dcbf7655ab 100644
--- a/testsuites/validation/tc-sem-mrsp-obtain.c
+++ b/testsuites/validation/tc-sem-mrsp-obtain.c
@@ -343,11 +343,8 @@ static void MoveToScheduler( Context *ctx, rtems_id scheduler_id )
TQSetScheduler( &ctx->tq_ctx, MOVER, other_scheduler_id, PRIO_VERY_HIGH );
ctx->tq_ctx.busy_wait[ MOVER ] = true;
TQSend( &ctx->tq_ctx, MOVER, TQ_EVENT_BUSY_WAIT );
-
- while ( rtems_scheduler_get_processor() != cpu ) {
- /* Wait */
- }
-
+ TQWaitForEventsReceived( &ctx->tq_ctx, MOVER );
+ T_eq_u32( rtems_scheduler_get_processor(), cpu );
ctx->tq_ctx.busy_wait[ MOVER ] = false;
TQWaitForExecutionStop( &ctx->tq_ctx, MOVER );
}