diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-09-30 14:38:04 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-11-02 10:05:40 +0100 |
commit | 501043a18bae037ca7195ce6989d3ffa8cc72660 (patch) | |
tree | 57e5051298373efcf465be0d0675a0efce50c80f /cpukit/score/src/schedulersimplechangepriority.c | |
parent | score: Rename scheduler ask for help stuff (diff) | |
download | rtems-501043a18bae037ca7195ce6989d3ffa8cc72660.tar.bz2 |
score: Pass scheduler node to update priority op
This enables to call this scheduler operation for all scheduler nodes
available to a thread.
Update #2556.
Diffstat (limited to 'cpukit/score/src/schedulersimplechangepriority.c')
-rw-r--r-- | cpukit/score/src/schedulersimplechangepriority.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cpukit/score/src/schedulersimplechangepriority.c b/cpukit/score/src/schedulersimplechangepriority.c index 9d4a565dbd..e430c75e08 100644 --- a/cpukit/score/src/schedulersimplechangepriority.c +++ b/cpukit/score/src/schedulersimplechangepriority.c @@ -23,11 +23,11 @@ Scheduler_Void_or_thread _Scheduler_simple_Update_priority( const Scheduler_Control *scheduler, - Thread_Control *the_thread + Thread_Control *the_thread, + Scheduler_Node *node ) { Scheduler_simple_Context *context; - Scheduler_Node *node; bool prepend_it; if ( !_Thread_Is_ready( the_thread ) ) { @@ -36,7 +36,6 @@ Scheduler_Void_or_thread _Scheduler_simple_Update_priority( } context = _Scheduler_simple_Get_context( scheduler ); - node = _Scheduler_Thread_get_node( the_thread ); _Scheduler_Node_get_priority( node, &prepend_it ); _Scheduler_simple_Extract( scheduler, the_thread ); |