RTEMS 6.3
Loading...
Searching...
No Matches
schedulersmp.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-2-Clause */
2
12
13/*
14 * Copyright (C) 2013, 2014 embedded brains GmbH & Co. KG
15 *
16 * Redistribution and use in source and binary forms, with or without
17 * modification, are permitted provided that the following conditions
18 * are met:
19 * 1. Redistributions of source code must retain the above copyright
20 * notice, this list of conditions and the following disclaimer.
21 * 2. Redistributions in binary form must reproduce the above copyright
22 * notice, this list of conditions and the following disclaimer in the
23 * documentation and/or other materials provided with the distribution.
24 *
25 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
29 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
35 * POSSIBILITY OF SUCH DAMAGE.
36 */
37
38#ifndef _RTEMS_SCORE_SCHEDULERSMP_H
39#define _RTEMS_SCORE_SCHEDULERSMP_H
40
41#include <rtems/score/chain.h>
43
44#ifdef __cplusplus
45extern "C" {
46#endif /* __cplusplus */
47
57
72
102
122
131 const Scheduler_Control *scheduler,
132 Thread_Control *idle,
133 struct Per_CPU_Control *cpu
134);
135
137
138#ifdef __cplusplus
139}
140#endif /* __cplusplus */
141
142#endif /* _RTEMS_SCORE_SCHEDULERSMP_H */
uint64_t Priority_Control
The thread priority control.
Definition priority.h:91
Scheduler_SMP_Node_state
SMP scheduler node states.
Definition schedulersmp.h:76
void _Scheduler_SMP_Start_idle(const Scheduler_Control *scheduler, Thread_Control *idle, struct Per_CPU_Control *cpu)
Starts an idle thread on the specified cpu.
Definition schedulersmpstartidle.c:43
@ SCHEDULER_SMP_NODE_READY
This scheduler node is ready.
Definition schedulersmp.h:100
@ SCHEDULER_SMP_NODE_BLOCKED
This scheduler node is blocked.
Definition schedulersmp.h:82
@ SCHEDULER_SMP_NODE_SCHEDULED
The scheduler node is scheduled.
Definition schedulersmp.h:92
This header file provides interfaces of the Chain Handler which are used by the implementation and th...
This header file provides interfaces of the Scheduler Handler which are used by the implementation an...
Per CPU Core Structure.
Definition percpu.h:384
Scheduler context.
Definition scheduler.h:318
Scheduler node for per-thread data.
Definition schedulernode.h:94
Scheduler context specialization for SMP schedulers.
Definition schedulersmp.h:61
Chain_Control Scheduled
The chain of scheduled nodes.
Definition schedulersmp.h:70
Scheduler_Context Base
Basic scheduler context.
Definition schedulersmp.h:65
Scheduler node specialization for SMP schedulers.
Definition schedulersmp.h:106
Scheduler_SMP_Node_state state
The state of this node.
Definition schedulersmp.h:115
Priority_Control priority
The current priority of thread owning this node.
Definition schedulersmp.h:120
Scheduler_Node Base
Basic scheduler node.
Definition schedulersmp.h:110
This union represents a chain control block.
Definition chain.h:96