summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/schedulerpriorityyield.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-10-10 14:01:55 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-11-02 10:05:40 +0100
commit2df4abcee2fd762a9688bef13e152d5b81cc763e (patch)
tree840277642e69e77c326aec7a4ff6322591cb1467 /cpukit/score/src/schedulerpriorityyield.c
parentscore: Pass scheduler node to update priority op (diff)
downloadrtems-2df4abcee2fd762a9688bef13e152d5b81cc763e.tar.bz2
score: Pass scheduler node to yield operation
Changed for consistency with other scheduler operations. Update #2556.
Diffstat (limited to '')
-rw-r--r--cpukit/score/src/schedulerpriorityyield.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/cpukit/score/src/schedulerpriorityyield.c b/cpukit/score/src/schedulerpriorityyield.c
index 5dab094f46..4d22dc9b4d 100644
--- a/cpukit/score/src/schedulerpriorityyield.c
+++ b/cpukit/score/src/schedulerpriorityyield.c
@@ -23,11 +23,15 @@
Scheduler_Void_or_thread _Scheduler_priority_Yield(
const Scheduler_Control *scheduler,
- Thread_Control *the_thread
+ Thread_Control *the_thread,
+ Scheduler_Node *node
)
{
- Scheduler_priority_Node *node = _Scheduler_priority_Thread_get_node( the_thread );
- Chain_Control *ready_chain = node->Ready_queue.ready_chain;
+ Scheduler_priority_Node *the_node;
+ Chain_Control *ready_chain;
+
+ the_node = _Scheduler_priority_Node_downcast( node );
+ ready_chain = the_node->Ready_queue.ready_chain;
if ( !_Chain_Has_only_one_node( ready_chain ) ) {
_Chain_Extract_unprotected( &the_thread->Object.Node );