[rtems-central commit] score: Fix priority inheritance flush test

Sebastian Huber sebh at rtems.org
Wed Sep 15 06:02:36 UTC 2021


Module:    rtems-central
Branch:    master
Commit:    93ceaf9eaa43346d3caf99e1a36e27008beb5fe8
Changeset: http://git.rtems.org/rtems-central/commit/?id=93ceaf9eaa43346d3caf99e1a36e27008beb5fe8

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Sep 14 15:04:38 2021 +0200

score: Fix priority inheritance flush test

---

 spec/score/tq/req/flush-priority-inherit.yml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/spec/score/tq/req/flush-priority-inherit.yml b/spec/score/tq/req/flush-priority-inherit.yml
index 16dbf03..002933c 100644
--- a/spec/score/tq/req/flush-priority-inherit.yml
+++ b/spec/score/tq/req/flush-priority-inherit.yml
@@ -46,12 +46,12 @@ post-conditions:
       T_eq_ptr( event->executing, GetTCB( ctx, TQ_BLOCKER_B ) );
       T_eq_ptr( event->thread, GetTCB( ctx, TQ_BLOCKER_B ) );
 
-      if ( ctx->minimum ) {
+      if ( ctx->minimum && rtems_configuration_get_maximum_processors() > 1 ) {
         /*
          * This superfluous priority update is carried out by
          * _Thread_queue_Enqueue() since TQ_BLOCKER_B would have inherited its
-         * priority to TQ_BLOCKER_A if it were not flushed from the thread
-         * queue.
+         * priority for scheduler B to TQ_BLOCKER_A if it were not flushed from
+         * the thread queue.
          */
         event = GetPriorityUpdate( ctx, &i );
         T_eq_ptr( event->executing, GetTCB( ctx, TQ_BLOCKER_B ) );



More information about the vc mailing list