summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/schedulerpriorityupdate.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-08-08 08:45:33 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-08-20 10:14:02 +0200
commit0c551f76e5432941d535bf8cf4ed5b6809e5f13e (patch)
treeef1d5662a8d93911492c021a320995417daf183f /cpukit/score/src/schedulerpriorityupdate.c
parentscore: PR2136: Fix _Thread_Change_priority() (diff)
downloadrtems-0c551f76e5432941d535bf8cf4ed5b6809e5f13e.tar.bz2
score: Add _Scheduler_priority_Get_scheduler_info
Add and use _Scheduler_priority_Get_scheduler_info().
Diffstat (limited to 'cpukit/score/src/schedulerpriorityupdate.c')
-rw-r--r--cpukit/score/src/schedulerpriorityupdate.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/cpukit/score/src/schedulerpriorityupdate.c b/cpukit/score/src/schedulerpriorityupdate.c
index aa54d31ccd..1935e137f1 100644
--- a/cpukit/score/src/schedulerpriorityupdate.c
+++ b/cpukit/score/src/schedulerpriorityupdate.c
@@ -25,16 +25,16 @@ void _Scheduler_priority_Update(
Thread_Control *the_thread
)
{
- Scheduler_priority_Per_thread *sched_info;
+ Scheduler_priority_Per_thread *sched_info_of_thread =
+ _Scheduler_priority_Get_scheduler_info( the_thread );
Chain_Control *rq;
- sched_info = (Scheduler_priority_Per_thread *) the_thread->scheduler_info;
- rq = (Chain_Control *) _Scheduler.information;
+ rq = (Chain_Control *) _Scheduler.information;
- sched_info->ready_chain = &rq[ the_thread->current_priority ];
+ sched_info_of_thread->ready_chain = &rq[ the_thread->current_priority ];
_Priority_bit_map_Initialize_information(
- &sched_info->Priority_map,
+ &sched_info_of_thread->Priority_map,
the_thread->current_priority
);
}