RTEMS
schedulersmpstartidle.c
1 /*
2  * Copyright (c) 2013, 2017 embedded brains GmbH.
3  *
4  * The license and distribution terms for this file may be
5  * found in the file LICENSE in this distribution or at
6  * http://www.rtems.org/license/LICENSE.
7  */
8 
9 #ifdef HAVE_CONFIG_H
10 #include "config.h"
11 #endif
12 
14 
16  const Scheduler_Control *scheduler,
17  Thread_Control *idle,
18  Per_CPU_Control *cpu
19 )
20 {
21  Scheduler_Context *context = _Scheduler_Get_context( scheduler );
22 
24  context,
25  idle,
26  cpu,
28  );
29 }
static void _Scheduler_SMP_Do_nothing_register_idle(Scheduler_Context *context, Scheduler_Node *idle, Per_CPU_Control *cpu)
Does nothing.
Scheduler context.
Definition: scheduler.h:247
Per CPU Core Structure.
Definition: percpu.h:347
SMP Scheduler Implementation.
static void _Scheduler_SMP_Do_start_idle(Scheduler_Context *context, Thread_Control *idle, Per_CPU_Control *cpu, Scheduler_SMP_Register_idle register_idle)
Starts the idle thread on the given processor.
Scheduler control.
Definition: scheduler.h:264
static __inline__ Scheduler_Context * _Scheduler_Get_context(const Scheduler_Control *scheduler)
Gets the context of the scheduler.
Definition: schedulerimpl.h:85
void _Scheduler_SMP_Start_idle(const Scheduler_Control *scheduler, Thread_Control *idle, Per_CPU_Control *cpu)
Starts an idle thread on the specified cpu.