diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-11-19 12:49:35 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-12-01 14:25:16 +0100 |
commit | f495c25b5c555bcd62c7ec19bb1bff75e5a6931b (patch) | |
tree | 1d754b847e615f005abaad1bf3532275408803ff | |
parent | b1cbf7e1600e7d6056c5e51b7dd43f86e253758c (diff) |
testsuites/validation/tc-sem-mrsp-obtain.c
-rw-r--r-- | testsuites/validation/tc-sem-mrsp-obtain.c | 7 |
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 ); } |