[rtems commit] score: Fix _Scheduler_EDF_Yield()

Sebastian Huber sebh at rtems.org
Fri Jun 24 08:30:31 UTC 2016


Module:    rtems
Branch:    master
Commit:    a4a307dfbd4a476afdab03dbbab6702ebf5644c0
Changeset: http://git.rtems.org/rtems/commit/?id=a4a307dfbd4a476afdab03dbbab6702ebf5644c0

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Jun 23 12:37:18 2016 +0200

score: Fix _Scheduler_EDF_Yield()

A non-preemptive task must yield if it says so.

---

 cpukit/score/src/scheduleredfyield.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpukit/score/src/scheduleredfyield.c b/cpukit/score/src/scheduleredfyield.c
index dae023a..06c1b46 100644
--- a/cpukit/score/src/scheduleredfyield.c
+++ b/cpukit/score/src/scheduleredfyield.c
@@ -34,7 +34,7 @@ Scheduler_Void_or_thread _Scheduler_EDF_Yield(
 
   _Scheduler_EDF_Extract( context, node );
   _Scheduler_EDF_Enqueue( context, node, node->current_priority );
-  _Scheduler_EDF_Schedule_body( scheduler, the_thread, false );
+  _Scheduler_EDF_Schedule_body( scheduler, the_thread, true );
 
   SCHEDULER_RETURN_VOID_OR_NULL;
 }




More information about the vc mailing list