diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-08-01 11:03:16 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-09-08 09:55:27 +0200 |
commit | 15b5678dcd72a11909a54b63ddc8e57869d63244 (patch) | |
tree | 52c2f9c120d1e7fefc954837e32f7b1038d052ab /cpukit/score/src/threadmp.c | |
parent | score: Move scheduler node to own header file (diff) | |
download | rtems-15b5678dcd72a11909a54b63ddc8e57869d63244.tar.bz2 |
score: Move thread wait node to scheduler node
Update #2556.
Diffstat (limited to '')
-rw-r--r-- | cpukit/score/src/threadmp.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cpukit/score/src/threadmp.c b/cpukit/score/src/threadmp.c index f5253560a6..cbb6c1c6b1 100644 --- a/cpukit/score/src/threadmp.c +++ b/cpukit/score/src/threadmp.c @@ -20,6 +20,7 @@ #include <rtems/score/threadimpl.h> #include <rtems/score/isrlock.h> +#include <rtems/score/schedulerimpl.h> #include <rtems/score/wkspace.h> #include <string.h> @@ -74,6 +75,16 @@ void _Thread_MP_Handler_initialization ( _Thread_Timer_initialize( &proxy->Timer, _Per_CPU_Get_by_index( 0 ) ); _RBTree_Initialize_node( &proxy->Active ); +#if defined(RTEMS_SMP) + proxy->Scheduler.own_node = &proxy->Scheduler_node; +#endif + proxy->Scheduler.node = &proxy->Scheduler_node; + _Scheduler_Node_do_initialize( + &proxy->Scheduler_node, + (Thread_Control *) proxy, + 0 + ); + proxy->Wait.spare_heads = &proxy->Thread_queue_heads[ 0 ]; _Thread_queue_Heads_initialize( proxy->Wait.spare_heads ); } |