From 8f0c7a46ed1edc5b2489bfd248942d6918836e3f Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 10 Jun 2014 16:13:37 +0200 Subject: score: Decouple thread and scheduler nodes on SMP Add a chain node to the scheduler node to decouple the thread and scheduler nodes. It is now possible to enqueue a thread in a thread wait queue and use its scheduler node at the same for other threads, e.g. a resouce owner. --- cpukit/score/src/schedulersmpstartidle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpukit/score/src/schedulersmpstartidle.c') diff --git a/cpukit/score/src/schedulersmpstartidle.c b/cpukit/score/src/schedulersmpstartidle.c index 420bcc018e..cb0c2ab706 100644 --- a/cpukit/score/src/schedulersmpstartidle.c +++ b/cpukit/score/src/schedulersmpstartidle.c @@ -25,5 +25,5 @@ void _Scheduler_SMP_Start_idle( node->state = SCHEDULER_SMP_NODE_SCHEDULED; _Thread_Set_CPU( thread, cpu ); - _Chain_Append_unprotected( &self->Scheduled, &thread->Object.Node ); + _Chain_Append_unprotected( &self->Scheduled, &node->Base.Node ); } -- cgit v1.2.3