summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/schedulersimplereadyqueueenqueuefirst.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/src/schedulersimplereadyqueueenqueuefirst.c')
-rw-r--r--cpukit/score/src/schedulersimplereadyqueueenqueuefirst.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/cpukit/score/src/schedulersimplereadyqueueenqueuefirst.c b/cpukit/score/src/schedulersimplereadyqueueenqueuefirst.c
index dd3379fda5..c5f1e68597 100644
--- a/cpukit/score/src/schedulersimplereadyqueueenqueuefirst.c
+++ b/cpukit/score/src/schedulersimplereadyqueueenqueuefirst.c
@@ -21,12 +21,12 @@
#include <rtems/score/schedulersimpleimpl.h>
void _Scheduler_simple_Ready_queue_enqueue_first(
- Scheduler_Control *scheduler_base,
- Thread_Control *the_thread
+ const Scheduler_Control *scheduler,
+ Thread_Control *the_thread
)
{
- Scheduler_simple_Control *scheduler =
- _Scheduler_simple_Self_from_base( scheduler_base );
+ Scheduler_simple_Context *context =
+ _Scheduler_simple_Get_context( scheduler );
- _Scheduler_simple_Insert_priority_lifo( &scheduler->Ready, the_thread );
+ _Scheduler_simple_Insert_priority_lifo( &context->Ready, the_thread );
}