diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-10-10 14:01:55 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-11-02 10:05:40 +0100 |
commit | 2df4abcee2fd762a9688bef13e152d5b81cc763e (patch) | |
tree | 840277642e69e77c326aec7a4ff6322591cb1467 /cpukit/score/src/schedulerpriorityyield.c | |
parent | score: Pass scheduler node to update priority op (diff) | |
download | rtems-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.c | 10 |
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 ); |