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/scheduleredfupdate.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/scheduleredfupdate.c')
-rw-r--r-- | cpukit/score/src/scheduleredfupdate.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cpukit/score/src/scheduleredfupdate.c b/cpukit/score/src/scheduleredfupdate.c index 99a3e0e3f6..47e3a705ae 100644 --- a/cpukit/score/src/scheduleredfupdate.c +++ b/cpukit/score/src/scheduleredfupdate.c @@ -20,14 +20,16 @@ #include <rtems/score/scheduleredfimpl.h> -void _Scheduler_EDF_Update( +void _Scheduler_EDF_Update_priority( const Scheduler_Control *scheduler, - Thread_Control *the_thread + Thread_Control *the_thread, + Priority_Control new_priority ) { Scheduler_EDF_Node *node = _Scheduler_EDF_Node_get( the_thread ); (void) scheduler; + (void) new_priority; if (node->queue_state == SCHEDULER_EDF_QUEUE_STATE_NEVER_HAS_BEEN) { /* Shifts the priority to the region of background tasks. */ |