summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/schedulerprioritythreadschedulerupdate.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--cpukit/score/src/schedulerprioritythreadschedulerupdate.c25
1 files changed, 5 insertions, 20 deletions
diff --git a/cpukit/score/src/schedulerprioritythreadschedulerupdate.c b/cpukit/score/src/schedulerprioritythreadschedulerupdate.c
index 16878111ab..4b75d1d084 100644
--- a/cpukit/score/src/schedulerprioritythreadschedulerupdate.c
+++ b/cpukit/score/src/schedulerprioritythreadschedulerupdate.c
@@ -2,6 +2,7 @@
* Scheduler Handler
*
* Copyright (C) 2010 Gedare Bloom.
+ * Copyright (C) 2011 On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
@@ -16,34 +17,18 @@
#include <rtems/system.h>
#include <rtems/config.h>
-#include <rtems/score/chain.h>
-#include <rtems/score/isr.h>
-#include <rtems/score/object.h>
#include <rtems/score/priority.h>
#include <rtems/score/prioritybitmap.h>
#include <rtems/score/scheduler.h>
#include <rtems/score/schedulerpriority.h>
-#include <rtems/score/states.h>
#include <rtems/score/thread.h>
-/*
- * _Scheduler_priority_Thread_scheduler_update
- *
- * Updates @a the_thread->scheduler
- *
- * Input parameters:
- * the_scheduler - pointer to scheduler control
- * the_thread - pointer to thread control block
- *
- * Output parameters: NONE
- */
-
-void _Scheduler_priority_Thread_scheduler_update (
- Scheduler_Control *the_scheduler,
- Thread_Control *the_thread
+void _Scheduler_priority_Thread_scheduler_update(
+ Thread_Control *the_thread
)
{
- Chain_Control *rq = the_scheduler->Ready_queues.priority;
+ Chain_Control *rq = _Scheduler.Ready_queues.priority;
+
the_thread->scheduler.priority->ready_chain = &rq[
the_thread->current_priority
];