summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/schedulerprioritychangepriority.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-06-10 16:32:12 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-06-23 09:13:00 +0200
commit647b95df9fa324795f3398d0562d363fd7d5079f (patch)
tree432bcc5fbc68fd6d303d8d0d47c94a1fb4ea09ba /cpukit/score/src/schedulerprioritychangepriority.c
parentscore: Collect scheduler related fields in TCB (diff)
downloadrtems-647b95df9fa324795f3398d0562d363fd7d5079f.tar.bz2
score: Use chain nodes for ready queue support
This reduces the API to the minimum data structures to maximize the re-usability.
Diffstat (limited to 'cpukit/score/src/schedulerprioritychangepriority.c')
-rw-r--r--cpukit/score/src/schedulerprioritychangepriority.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/score/src/schedulerprioritychangepriority.c b/cpukit/score/src/schedulerprioritychangepriority.c
index 448c603861..91b9fa71a2 100644
--- a/cpukit/score/src/schedulerprioritychangepriority.c
+++ b/cpukit/score/src/schedulerprioritychangepriority.c
@@ -33,7 +33,7 @@ void _Scheduler_priority_Change_priority(
Scheduler_priority_Node *node = _Scheduler_priority_Node_get( the_thread );
_Scheduler_priority_Ready_queue_extract(
- the_thread,
+ &the_thread->Object.Node,
&node->Ready_queue,
&context->Bit_map
);
@@ -47,13 +47,13 @@ void _Scheduler_priority_Change_priority(
if ( prepend_it ) {
_Scheduler_priority_Ready_queue_enqueue_first(
- the_thread,
+ &the_thread->Object.Node,
&node->Ready_queue,
&context->Bit_map
);
} else {
_Scheduler_priority_Ready_queue_enqueue(
- the_thread,
+ &the_thread->Object.Node,
&node->Ready_queue,
&context->Bit_map
);