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-11-19 12:49:35 +0100 |
commit | 3ef1c530280594e74958a7a915e199332d0a814c (patch) | |
tree | 87977a885c88c1508823e96580586d74cc17d39f | |
parent | 98a1ce96eae2445f3d56985aee7d8607529b5319 (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 ); } |