[rtems-central commit] spec: Use SetSelfPriorityNoYield()
Sebastian Huber
sebh at rtems.org
Fri Aug 6 12:21:44 UTC 2021
Module: rtems-central
Branch: master
Commit: e131ac183847cbc3a9b5993eca644e5b39a66b60
Changeset: http://git.rtems.org/rtems-central/commit/?id=e131ac183847cbc3a9b5993eca644e5b39a66b60
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Fri Aug 6 08:06:27 2021 +0200
spec: Use SetSelfPriorityNoYield()
---
spec/rtems/task/req/restart.yml | 22 ++--------------------
1 file changed, 2 insertions(+), 20 deletions(-)
diff --git a/spec/rtems/task/req/restart.yml b/spec/rtems/task/req/restart.yml
index 53c6305..05c3171 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 );
}
More information about the vc
mailing list