summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/threadchangepriority.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/threadchangepriority.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 '')
-rw-r--r--cpukit/score/src/threadchangepriority.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/score/src/threadchangepriority.c b/cpukit/score/src/threadchangepriority.c
index 8059ab1678..c2e48e1cf1 100644
--- a/cpukit/score/src/threadchangepriority.c
+++ b/cpukit/score/src/threadchangepriority.c
@@ -106,7 +106,7 @@ void _Thread_Change_priority(
scheduler = _Scheduler_Get( the_thread );
_Scheduler_Schedule( scheduler, the_thread );
} else {
- _Scheduler_Update( scheduler, the_thread );
+ _Scheduler_Update_priority( scheduler, the_thread, new_priority );
}
_ISR_Enable( level );