[rtems commit] score: Fix _Scheduler_EDF_Cancel_job_filter()

Sebastian Huber sebh at rtems.org
Thu Aug 4 06:34:25 UTC 2016


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Aug  4 08:31:25 2016 +0200

score: Fix _Scheduler_EDF_Cancel_job_filter()

Commit 21bdca49eea9213cc31a497072d01192eed8675e accidentally used a
function which may be added later.

---

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

diff --git a/cpukit/score/src/scheduleredfreleasejob.c b/cpukit/score/src/scheduleredfreleasejob.c
index 26b303a..c109434 100644
--- a/cpukit/score/src/scheduleredfreleasejob.c
+++ b/cpukit/score/src/scheduleredfreleasejob.c
@@ -69,7 +69,7 @@ static bool _Scheduler_EDF_Cancel_job_filter(
 
   node = _Scheduler_EDF_Thread_get_node( the_thread );
 
-  current_priority = _Thread_Get_priority( the_thread );
+  current_priority = the_thread->current_priority;
   new_priority = node->background_priority;
 
   node->current_priority = new_priority;



More information about the vc mailing list