From e131ac183847cbc3a9b5993eca644e5b39a66b60 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 6 Aug 2021 08:06:27 +0200 Subject: spec: Use SetSelfPriorityNoYield() --- spec/rtems/task/req/restart.yml | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) (limited to 'spec/rtems/task/req') diff --git a/spec/rtems/task/req/restart.yml b/spec/rtems/task/req/restart.yml index 53c63051..05c3171d 100644 --- a/spec/rtems/task/req/restart.yml +++ b/spec/rtems/task/req/restart.yml @@ -1169,26 +1169,8 @@ test-support: | * below. */ if ( ctx->nested_request ) { - rtems_status_code sc; - rtems_id id; - - /* - * This sequence lowers the priority to PRIO_NORMAL without an - * implicit yield. - */ - - sc = rtems_semaphore_create( - rtems_build_name( 'M', 'U', 'T', 'X' ), - 0, - RTEMS_BINARY_SEMAPHORE | RTEMS_PRIORITY | RTEMS_PRIORITY_CEILING, - PRIO_HIGH, - &id - ); - T_rsc_success( sc ); - - SetSelfPriority( PRIO_NORMAL ); - ReleaseMutex( id ); - DeleteMutex( id ); + /* Lower the priority to PRIO_NORMAL without an * implicit yield */ + SetSelfPriorityNoYield( PRIO_NORMAL ); } else { SetScheduler( ctx->worker_id, ctx->scheduler_id, PRIO_HIGH ); } -- cgit v1.2.3