From beab7329fca655c93743fbb590d00bb4ea5a6d78 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 13 May 2014 16:03:05 +0200 Subject: score: Introduce scheduler nodes Rename scheduler per-thread information into scheduler nodes using Scheduler_Node as the base type. Use inheritance for specialized schedulers. Move the scheduler specific states from the thread control block into the scheduler node structure. Validate the SMP scheduler node state transitions in case RTEMS_DEBUG is defined. --- cpukit/score/src/schedulerpriorityyield.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'cpukit/score/src/schedulerpriorityyield.c') diff --git a/cpukit/score/src/schedulerpriorityyield.c b/cpukit/score/src/schedulerpriorityyield.c index 63b344ace7..f2aeada660 100644 --- a/cpukit/score/src/schedulerpriorityyield.c +++ b/cpukit/score/src/schedulerpriorityyield.c @@ -27,9 +27,8 @@ void _Scheduler_priority_Yield( Thread_Control *the_thread ) { - Scheduler_priority_Per_thread *sched_info_of_thread = - _Scheduler_priority_Get_scheduler_info( the_thread ); - Chain_Control *ready_chain = sched_info_of_thread->ready_chain; + Scheduler_priority_Node *node = _Scheduler_priority_Node_get( the_thread ); + Chain_Control *ready_chain = node->Ready_queue.ready_chain; ISR_Level level; (void) scheduler; -- cgit v1.2.3