summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/schedulersmpstartidle.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-05-20Update company nameSebastian Huber1-1/+1
The embedded brains GmbH & Co. KG is the legal successor of embedded brains GmbH.
2022-02-28score/src/[n-s]*.c: Change license to BSD-2Joel Sherrill1-3/+22
Updates #3053.
2020-12-02score: Canonicalize Doxygen @file commentsSebastian Huber1-0/+9
Use common phrases for the file brief descriptions. Update #3706.
2020-04-16Canonicalize config.h includeSebastian Huber1-2/+2
Use the following variant which was already used by most source files: #ifdef HAVE_CONFIG_H #include "config.h" #endif
2017-07-10score: Add simple affinity support to EDF SMPSebastian Huber1-14/+8
Update #3059.
2017-06-29score: Add red-black tree node to Scheduler_NodeSebastian Huber1-1/+1
In SMP configurations, add a red-black tree node to Scheduler_Node to enable an EDF scheduler implementation. Update #3056.
2016-11-10rtems: Add scheduler processor add/removeSebastian Huber1-1/+1
Update #2797.
2016-11-09score: Clarify _Scheduler_SMP_Start_idle()Sebastian Huber1-8/+12
2016-03-17score: Fix CPU time used by executing threadsSebastian Huber1-0/+1
The CPU time used of a thread was previously maintained per-processor mostly during _Thread_Dispatch(). However, on SMP configurations the actual processor of a thread is difficult to figure out since thread dispatching is a highly asynchronous process (e.g. via inter-processor interrupts). Only the intended processor of a thread is known to the scheduler easily. Do the CPU usage accounting during thread heir updates in the context of the scheduler operations. Provide the function _Thread_Get_CPU_time_used() to get the CPU usage of a thread using proper locks to get a consistent value. Close #2627.
2014-07-09score: Implement scheduler helping protocolSebastian Huber1-0/+1
The following scheduler operations return a thread in need for help - unblock, - change priority, and - yield. A thread in need for help is a thread that encounters a scheduler state change from scheduled to ready or a thread that cannot be scheduled in an unblock operation. Such a thread can ask threads which depend on resources owned by this thread for help. Add a new ask for help scheduler operation. This operation is used by _Scheduler_Ask_for_help() to help threads in need for help returned by the operations mentioned above. This operation is also used by _Scheduler_Thread_change_resource_root() in case the root of a resource sub-tree changes. A use case is the ownership change of a resource. In case it is not possible to schedule a thread in need for help, then the corresponding scheduler node will be placed into the set of ready scheduler nodes of the scheduler instance. Once a state change from ready to scheduled happens for this scheduler node it may be used to schedule the thread in need for help.
2014-07-08score: Rename *_Node_get() to *_Thread_get_node()Sebastian Huber1-1/+1
This emphasizes that the scheduler node of a thread is returned and this is not a function working with scheduler nodes like the other *_Node_*() functions.
2014-06-23score: Decouple thread and scheduler nodes on SMPSebastian Huber1-1/+1
Add a chain node to the scheduler node to decouple the thread and scheduler nodes. It is now possible to enqueue a thread in a thread wait queue and use its scheduler node at the same for other threads, e.g. a resouce owner.
2014-05-15score: Add and use _Scheduler_SMP_Start_idle()Sebastian Huber1-0/+29
2014-04-03score: Move priority bit map to scheduler instanceSebastian Huber1-40/+0
Delete global variables _Priority_Major_bit_map and _Priority_Bit_map. This makes it possible to use multiple priority scheduler instances for example with clustered/partitioned scheduling on SMP.
2014-03-31score: Add and use thread get/set CPU functionsSebastian Huber1-1/+1
2014-03-21Change all references of rtems.com to rtems.org.Chris Johns1-1/+1
2013-08-20smp: Rename _Scheduler_simple_smp_Start_idle()Sebastian Huber1-0/+40
Rename _Scheduler_simple_smp_Start_idle() to _Scheduler_SMP_Start_idle().