summaryrefslogtreecommitdiff
path: root/cpukit/score/src/schedulersimpleyield.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/schedulersimpleyield.c
parent501043a18bae037ca7195ce6989d3ffa8cc72660 (diff)
score: Pass scheduler node to yield operation
Changed for consistency with other scheduler operations. Update #2556.
Diffstat (limited to 'cpukit/score/src/schedulersimpleyield.c')
-rw-r--r--cpukit/score/src/schedulersimpleyield.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/cpukit/score/src/schedulersimpleyield.c b/cpukit/score/src/schedulersimpleyield.c
index 66e4450477..cfd123fb8c 100644
--- a/cpukit/score/src/schedulersimpleyield.c
+++ b/cpukit/score/src/schedulersimpleyield.c
@@ -22,12 +22,15 @@
Scheduler_Void_or_thread _Scheduler_simple_Yield(
const Scheduler_Control *scheduler,
- Thread_Control *the_thread
+ Thread_Control *the_thread,
+ Scheduler_Node *node
)
{
Scheduler_simple_Context *context =
_Scheduler_simple_Get_context( scheduler );
+ (void) node;
+
_Chain_Extract_unprotected( &the_thread->Object.Node );
_Scheduler_simple_Insert_priority_fifo( &context->Ready, the_thread );
_Scheduler_simple_Schedule_body( scheduler, the_thread, false );