summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--spec/rtems/task/req/restart.yml22
1 files changed, 2 insertions, 20 deletions
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 );
}