summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-08-06 08:06:27 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-08-06 14:00:40 +0200
commite131ac183847cbc3a9b5993eca644e5b39a66b60 (patch)
tree8e286de8ff4fc46a7f6e4e810758a325def61e62
parentspec: Improve bsp_interrupt_spurious() test case (diff)
downloadrtems-central-e131ac183847cbc3a9b5993eca644e5b39a66b60.tar.bz2
spec: Use SetSelfPriorityNoYield()
-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 );
}