diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-06-03 15:58:30 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-06-04 09:47:11 +0200 |
commit | 4d1f5008dbce6567e9501de8b7623b245c9f8283 (patch) | |
tree | efea6ce1b08f4c813e000307c7419aff1dc92e03 /cpukit/score/src/schedulerprioritysmp.c | |
parent | score: Replace _Scheduler_Allocate/Free() (diff) | |
download | rtems-4d1f5008dbce6567e9501de8b7623b245c9f8283.tar.bz2 |
score: Rename _Scheduler_Update()
Rename _Scheduler_Update() to _Scheduler_Update_priority(). Add
parameter for the new thread priority to avoid direct usage of
Thread_Control::current_priority in the scheduler operation.
Diffstat (limited to 'cpukit/score/src/schedulerprioritysmp.c')
-rw-r--r-- | cpukit/score/src/schedulerprioritysmp.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cpukit/score/src/schedulerprioritysmp.c b/cpukit/score/src/schedulerprioritysmp.c index e0ed75c477..7915ce6bef 100644 --- a/cpukit/score/src/schedulerprioritysmp.c +++ b/cpukit/score/src/schedulerprioritysmp.c @@ -93,15 +93,16 @@ static void _Scheduler_priority_SMP_Do_update( ); } -void _Scheduler_priority_SMP_Update( +void _Scheduler_priority_SMP_Update_priority( const Scheduler_Control *scheduler, - Thread_Control *thread + Thread_Control *thread, + Priority_Control new_priority ) { Scheduler_Context *context = _Scheduler_Get_context( scheduler ); Scheduler_Node *node = _Scheduler_Node_get( thread ); - _Scheduler_priority_SMP_Do_update( context, node, thread->current_priority ); + _Scheduler_priority_SMP_Do_update( context, node, new_priority ); } static Thread_Control *_Scheduler_priority_SMP_Get_highest_ready( |