summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/threadsetpriority.c
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/src/threadsetpriority.c
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/src/threadsetpriority.c')
-rw-r--r--cpukit/score/src/threadsetpriority.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/cpukit/score/src/threadsetpriority.c b/cpukit/score/src/threadsetpriority.c
index e1286480a4..455cf20af2 100644
--- a/cpukit/score/src/threadsetpriority.c
+++ b/cpukit/score/src/threadsetpriority.c
@@ -28,5 +28,9 @@ void _Thread_Set_priority(
{
the_thread->current_priority = new_priority;
- _Scheduler_Update( _Scheduler_Get( the_thread ), the_thread );
+ _Scheduler_Update_priority(
+ _Scheduler_Get( the_thread),
+ the_thread,
+ new_priority
+ );
}