19#ifndef _RTEMS_SCORE_SCHEDULERSIMPLE_SMP_H
20#define _RTEMS_SCORE_SCHEDULERSIMPLE_SMP_H
59#define SCHEDULER_SIMPLE_SMP_MAXIMUM_PRIORITY 255
64#define SCHEDULER_SIMPLE_SMP_ENTRY_POINTS \
66 _Scheduler_simple_SMP_Initialize, \
67 _Scheduler_default_Schedule, \
68 _Scheduler_simple_SMP_Yield, \
69 _Scheduler_simple_SMP_Block, \
70 _Scheduler_simple_SMP_Unblock, \
71 _Scheduler_simple_SMP_Update_priority, \
72 _Scheduler_default_Map_priority, \
73 _Scheduler_default_Unmap_priority, \
74 _Scheduler_simple_SMP_Ask_for_help, \
75 _Scheduler_simple_SMP_Reconsider_help_request, \
76 _Scheduler_simple_SMP_Withdraw_node, \
77 _Scheduler_default_Pin_or_unpin, \
78 _Scheduler_default_Pin_or_unpin, \
79 _Scheduler_simple_SMP_Add_processor, \
80 _Scheduler_simple_SMP_Remove_processor, \
81 _Scheduler_simple_SMP_Node_initialize, \
82 _Scheduler_default_Node_destroy, \
83 _Scheduler_default_Release_job, \
84 _Scheduler_default_Cancel_job, \
85 _Scheduler_default_Tick, \
86 _Scheduler_SMP_Start_idle \
87 SCHEDULER_OPERATION_DEFAULT_GET_SET_AFFINITY \
194 Thread_Scheduler_state next_state
uint64_t Priority_Control
The thread priority control.
Definition: priority.h:70
void _Scheduler_simple_SMP_Node_initialize(const Scheduler_Control *scheduler, Scheduler_Node *node, Thread_Control *the_thread, Priority_Control priority)
Initializes the node with the given attributes.
Definition: schedulersimplesmp.c:45
bool _Scheduler_simple_SMP_Ask_for_help(const Scheduler_Control *scheduler, Thread_Control *the_thread, Scheduler_Node *node)
Asks for help.
Definition: schedulersimplesmp.c:280
void _Scheduler_simple_SMP_Yield(const Scheduler_Control *scheduler, Thread_Control *thread, Scheduler_Node *node)
Definition: schedulersimplesmp.c:359
void _Scheduler_simple_SMP_Block(const Scheduler_Control *scheduler, Thread_Control *thread, Scheduler_Node *node)
Blocks a thread.
Definition: schedulersimplesmp.c:165
Thread_Control * _Scheduler_simple_SMP_Remove_processor(const Scheduler_Control *scheduler, struct Per_CPU_Control *cpu)
Removes an idle thread from the given cpu.
Definition: schedulersimplesmp.c:344
void _Scheduler_simple_SMP_Reconsider_help_request(const Scheduler_Control *scheduler, Thread_Control *the_thread, Scheduler_Node *node)
Reconsiders help.
Definition: schedulersimplesmp.c:291
void _Scheduler_simple_SMP_Withdraw_node(const Scheduler_Control *scheduler, Thread_Control *the_thread, Scheduler_Node *node, Thread_Scheduler_state next_state)
Withdraws node.
Definition: schedulersimplesmp.c:307
void _Scheduler_simple_SMP_Unblock(const Scheduler_Control *scheduler, Thread_Control *thread, Scheduler_Node *node)
Unblocks a thread.
Definition: schedulersimplesmp.c:224
void _Scheduler_simple_SMP_Update_priority(const Scheduler_Control *scheduler, Thread_Control *the_thread, Scheduler_Node *node)
Updates the priority of the node.
Definition: schedulersimplesmp.c:260
void _Scheduler_simple_SMP_Initialize(const Scheduler_Control *scheduler)
Initializes the scheduler's context.
Definition: schedulersimplesmp.c:36
void _Scheduler_simple_SMP_Add_processor(const Scheduler_Control *scheduler, Thread_Control *idle)
Adds idle to scheduler.
Definition: schedulersimplesmp.c:328
Thread Manipulation with the Priority-Based Scheduler.
Constants and Structures Associated with the Scheduler.
Per CPU Core Structure.
Definition: percpu.h:347
Scheduler node for per-thread data.
Definition: schedulernode.h:79
Scheduler context specialization for SMP schedulers.
Definition: schedulersmp.h:46
Definition: schedulersimplesmp.h:54
Scheduler control.
Definition: scheduler.h:269