summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/schedulerprioritysmp.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-06-03 15:58:30 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-06-04 09:47:11 +0200
commit4d1f5008dbce6567e9501de8b7623b245c9f8283 (patch)
treeefea6ce1b08f4c813e000307c7419aff1dc92e03 /cpukit/score/include/rtems/score/schedulerprioritysmp.h
parentscore: Replace _Scheduler_Allocate/Free() (diff)
downloadrtems-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/include/rtems/score/schedulerprioritysmp.h')
-rw-r--r--cpukit/score/include/rtems/score/schedulerprioritysmp.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/cpukit/score/include/rtems/score/schedulerprioritysmp.h b/cpukit/score/include/rtems/score/schedulerprioritysmp.h
index c17fcf4a05..cbb8a588ea 100644
--- a/cpukit/score/include/rtems/score/schedulerprioritysmp.h
+++ b/cpukit/score/include/rtems/score/schedulerprioritysmp.h
@@ -86,7 +86,7 @@ typedef struct {
_Scheduler_priority_SMP_Change_priority, \
_Scheduler_priority_SMP_Node_initialize, \
_Scheduler_default_Node_destroy, \
- _Scheduler_priority_SMP_Update, \
+ _Scheduler_priority_SMP_Update_priority, \
_Scheduler_priority_Priority_compare, \
_Scheduler_default_Release_job, \
_Scheduler_default_Tick, \
@@ -119,9 +119,10 @@ void _Scheduler_priority_SMP_Change_priority(
bool prepend_it
);
-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
);
void _Scheduler_priority_SMP_Yield(