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:15 +0100 |
commit | b1cbf7e1600e7d6056c5e51b7dd43f86e253758c (patch) | |
tree | e8c80a08e9f4af145880787226a551ee95ad51fb | |
parent | b323af870d56db806e056b5abad6d187fb7bd8b8 (diff) |
testsuites/validation/tc-sched-yield.c
-rw-r--r-- | testsuites/validation/tc-sched-yield.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/testsuites/validation/tc-sched-yield.c b/testsuites/validation/tc-sched-yield.c index 0eda079650..5421f734a0 100644 --- a/testsuites/validation/tc-sched-yield.c +++ b/testsuites/validation/tc-sched-yield.c @@ -247,11 +247,8 @@ static void MoveToHelping( Context *ctx ) { ctx->tq_ctx.busy_wait[ MOVER ] = true; TQSend( &ctx->tq_ctx, MOVER, TQ_EVENT_BUSY_WAIT ); - - while ( rtems_scheduler_get_processor() != 1 ) { - /* Wait */ - } - + TQWaitForEventsReceived( &ctx->tq_ctx, MOVER ); + T_eq_u32( rtems_scheduler_get_processor(), 1 ); ctx->tq_ctx.busy_wait[ MOVER ] = false; TQWaitForExecutionStop( &ctx->tq_ctx, MOVER ); } |