38#ifndef _RTEMS_SCORE_SCHEDULERSTRONGAPA_H
39#define _RTEMS_SCORE_SCHEDULERSTRONGAPA_H
146#define SCHEDULER_STRONG_APA_MAXIMUM_PRIORITY 255
151#define SCHEDULER_STRONG_APA_ENTRY_POINTS \
153 _Scheduler_strong_APA_Initialize, \
154 _Scheduler_default_Schedule, \
155 _Scheduler_strong_APA_Yield, \
156 _Scheduler_strong_APA_Block, \
157 _Scheduler_strong_APA_Unblock, \
158 _Scheduler_strong_APA_Update_priority, \
159 _Scheduler_default_Map_priority, \
160 _Scheduler_default_Unmap_priority, \
161 _Scheduler_strong_APA_Ask_for_help, \
162 _Scheduler_strong_APA_Reconsider_help_request, \
163 _Scheduler_strong_APA_Withdraw_node, \
164 _Scheduler_strong_APA_Make_sticky, \
165 _Scheduler_strong_APA_Clean_sticky, \
166 _Scheduler_default_Pin_or_unpin_not_supported, \
167 _Scheduler_default_Pin_or_unpin_not_supported, \
168 _Scheduler_strong_APA_Add_processor, \
169 _Scheduler_strong_APA_Remove_processor, \
170 _Scheduler_strong_APA_Node_initialize, \
171 _Scheduler_default_Node_destroy, \
172 _Scheduler_default_Release_job, \
173 _Scheduler_default_Cancel_job, \
174 _Scheduler_strong_APA_Start_idle, \
175 _Scheduler_strong_APA_Set_affinity \
194 const Scheduler_Control *scheduler,
196 Thread_Control *the_thread,
208 const Scheduler_Control *scheduler,
209 Thread_Control *the_thread,
221 const Scheduler_Control *scheduler,
222 Thread_Control *the_thread,
234 const Scheduler_Control *scheduler,
235 Thread_Control *the_thread,
250 const Scheduler_Control *scheduler,
251 Thread_Control *the_thread,
263 const Scheduler_Control *scheduler,
264 Thread_Control *the_thread,
277 const Scheduler_Control *scheduler,
278 Thread_Control *the_thread,
280 Thread_Scheduler_state next_state
293 const Scheduler_Control *scheduler,
294 Thread_Control *the_thread,
308 const Scheduler_Control *scheduler,
309 Thread_Control *the_thread,
323 const Scheduler_Control *scheduler,
324 Thread_Control *the_thread,
338 const Scheduler_Control *scheduler,
339 Thread_Control *the_thread,
350 const Scheduler_Control *scheduler,
363 const Scheduler_Control *scheduler,
375 const Scheduler_Control *scheduler,
376 Thread_Control *the_thread,
388 const Scheduler_Control *scheduler,
389 Thread_Control *idle,
401 const Scheduler_Control *scheduler,
402 Thread_Control *thread,
404 const Processor_mask *affinity
#define RTEMS_ZERO_LENGTH_ARRAY
This constant represents the element count of a zero-length array.
Definition basedefs.h:1032
uint64_t Priority_Control
The thread priority control.
Definition priority.h:91
void _Scheduler_strong_APA_Yield(const Scheduler_Control *scheduler, Thread_Control *the_thread, Scheduler_Node *node)
Performs a yield operation.
Definition schedulerstrongapa.c:879
Thread_Control * _Scheduler_strong_APA_Remove_processor(const Scheduler_Control *scheduler, struct Per_CPU_Control *cpu)
Removes an idle thread from the given cpu.
Definition schedulerstrongapa.c:1101
void _Scheduler_strong_APA_Block(const Scheduler_Control *scheduler, Thread_Control *the_thread, Scheduler_Node *node)
Blocks the thread.
Definition schedulerstrongapa.c:898
void _Scheduler_strong_APA_Node_initialize(const Scheduler_Control *scheduler, Scheduler_Node *node, Thread_Control *the_thread, Priority_Control priority)
Initializes the node with the given priority.
Definition schedulerstrongapa.c:1119
void _Scheduler_strong_APA_Make_sticky(const Scheduler_Control *scheduler, Thread_Control *the_thread, Scheduler_Node *node)
Makes the node sticky.
Definition schedulerstrongapa.c:1020
void _Scheduler_strong_APA_Update_priority(const Scheduler_Control *scheduler, Thread_Control *the_thread, Scheduler_Node *node)
Updates the priority of the node.
Definition schedulerstrongapa.c:945
Status_Control _Scheduler_strong_APA_Set_affinity(const Scheduler_Control *scheduler, Thread_Control *thread, Scheduler_Node *node_base, const Processor_mask *affinity)
Sets the affinity .
Definition schedulerstrongapa.c:1140
void _Scheduler_strong_APA_Add_processor(const Scheduler_Control *scheduler, Thread_Control *idle)
Adds the idle thread to a processor.
Definition schedulerstrongapa.c:1067
void _Scheduler_strong_APA_Unblock(const Scheduler_Control *scheduler, Thread_Control *the_thread, Scheduler_Node *node)
Unblocks the thread.
Definition schedulerstrongapa.c:927
void _Scheduler_strong_APA_Reconsider_help_request(const Scheduler_Control *scheduler, Thread_Control *the_thread, Scheduler_Node *node)
Reconsiders help request.
Definition schedulerstrongapa.c:981
void _Scheduler_strong_APA_sticky(const Scheduler_Control *scheduler, Thread_Control *the_thread, Scheduler_Node *node)
Cleans the sticky property from the node.
void _Scheduler_strong_APA_Start_idle(const Scheduler_Control *scheduler, Thread_Control *idle, struct Per_CPU_Control *cpu)
Starts an idle thread.
Definition schedulerstrongapa.c:1083
bool _Scheduler_strong_APA_Ask_for_help(const Scheduler_Control *scheduler, Thread_Control *the_thread, Scheduler_Node *node)
Asks for help.
Definition schedulerstrongapa.c:966
void _Scheduler_strong_APA_Clean_sticky(const Scheduler_Control *scheduler, Thread_Control *the_thread, Scheduler_Node *node)
Cleans the sticky property from the node.
Definition schedulerstrongapa.c:1035
void _Scheduler_strong_APA_Withdraw_node(const Scheduler_Control *scheduler, Thread_Control *the_thread, Scheduler_Node *node, Thread_Scheduler_state next_state)
Withdraws the node.
Definition schedulerstrongapa.c:997
void _Scheduler_strong_APA_Initialize(const Scheduler_Control *scheduler)
Initializes the scheduler.
Definition schedulerstrongapa.c:870
Status_Control
Status codes.
Definition status.h:111
This header file provides interfaces of the SMP Scheduler which are used by the implementation and th...
This header file provides interfaces of the Scheduler Handler which are used by the implementation an...
This structure represents a chain node.
Definition chain.h:78
Per CPU Core Structure.
Definition percpu.h:384
Scheduler node for per-thread data.
Definition schedulernode.h:94
Scheduler context specialization for SMP schedulers.
Definition schedulersmp.h:61
Scheduler node specialization for SMP schedulers.
Definition schedulersmp.h:106
CPU related variables and a CPU_Control to implement BFS.
Definition schedulerstrongapa.h:102
bool visited
Whether or not this cpu has been added to the queue (visited in BFS).
Definition schedulerstrongapa.h:117
Scheduler_Node * preempting_node
The node that would preempt this CPU.
Definition schedulerstrongapa.h:111
struct Per_CPU_Control * cpu
CPU in a queue.
Definition schedulerstrongapa.h:106
Scheduler_Node * executing
The node currently executing on this cpu.
Definition schedulerstrongapa.h:122
Scheduler context and node definition for Strong APA scheduler.
Definition schedulerstrongapa.h:128
Chain_Control Ready
Chain of all the ready and scheduled nodes present in the Strong APA scheduler.
Definition schedulerstrongapa.h:138
Scheduler_SMP_Context Base
Definition schedulerstrongapa.h:132
Scheduler_strong_APA_CPU CPU[RTEMS_ZERO_LENGTH_ARRAY]
Stores cpu-specific variables.
Definition schedulerstrongapa.h:143
Scheduler node specialization for Strong APA schedulers.
Definition schedulerstrongapa.h:74
Chain_Node Ready_node
Chain node for Scheduler_strong_APA_Context::Ready.
Definition schedulerstrongapa.h:83
Processor_mask Affinity
The associated affinity set of this node.
Definition schedulerstrongapa.h:95
struct Per_CPU_Control * cpu_to_preempt
CPU that this node would preempt in the backtracking part of _Scheduler_strong_APA_Get_highest_ready ...
Definition schedulerstrongapa.h:90
Scheduler_SMP_Node Base
SMP scheduler node.
Definition schedulerstrongapa.h:78
This union represents a chain control block.
Definition chain.h:96