[rtems commit] mpci: Use the first scheduler for MPCI
Sebastian Huber
sebh at rtems.org
Thu Nov 10 08:59:14 UTC 2016
Module: rtems
Branch: master
Commit: 947814cae7832740309faad6c934d8ee3828067c
Changeset: http://git.rtems.org/rtems/commit/?id=947814cae7832740309faad6c934d8ee3828067c
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Fri Nov 4 15:31:44 2016 +0100
mpci: Use the first scheduler for MPCI
Avoid use of processor index 0 which may have no scheduler assigned.
---
cpukit/score/src/mpci.c | 2 +-
cpukit/score/src/threadmp.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/cpukit/score/src/mpci.c b/cpukit/score/src/mpci.c
index 315b33d..451592c 100644
--- a/cpukit/score/src/mpci.c
+++ b/cpukit/score/src/mpci.c
@@ -152,7 +152,7 @@ static void _MPCI_Create_server( void )
_Thread_Initialize(
&_Thread_Internal_information,
_MPCI_Receive_server_tcb,
- _Scheduler_Get_by_CPU_index( _SMP_Get_current_processor() ),
+ &_Scheduler_Table[ 0 ],
NULL, /* allocate the stack */
_Stack_Minimum() +
CPU_MPCI_RECEIVE_SERVER_EXTRA_STACK +
diff --git a/cpukit/score/src/threadmp.c b/cpukit/score/src/threadmp.c
index 9b3a477..22078a7 100644
--- a/cpukit/score/src/threadmp.c
+++ b/cpukit/score/src/threadmp.c
@@ -77,7 +77,7 @@ void _Thread_MP_Handler_initialization (
proxy->Scheduler.nodes = &proxy->Scheduler_node;
_Scheduler_Node_do_initialize(
- _Scheduler_Get_by_CPU_index( 0 ),
+ &_Scheduler_Table[ 0 ],
&proxy->Scheduler_node,
(Thread_Control *) proxy,
0
More information about the vc
mailing list