summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/schedulersmpstartidle.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* score: Add simple affinity support to EDF SMPSebastian Huber2017-07-101-14/+8
| | | | Update #3059.
* score: Add red-black tree node to Scheduler_NodeSebastian Huber2017-06-291-1/+1
| | | | | | | In SMP configurations, add a red-black tree node to Scheduler_Node to enable an EDF scheduler implementation. Update #3056.
* rtems: Add scheduler processor add/removeSebastian Huber2016-11-101-1/+1
| | | | Update #2797.
* score: Clarify _Scheduler_SMP_Start_idle()Sebastian Huber2016-11-091-8/+12
|
* score: Fix CPU time used by executing threadsSebastian Huber2016-03-171-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.
* score: Implement scheduler helping protocolSebastian Huber2014-07-091-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.
* score: Rename *_Node_get() to *_Thread_get_node()Sebastian Huber2014-07-081-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.
* score: Decouple thread and scheduler nodes on SMPSebastian Huber2014-06-231-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.
* score: Add and use _Scheduler_SMP_Start_idle()Sebastian Huber2014-05-151-0/+29
|
* score: Move priority bit map to scheduler instanceSebastian Huber2014-04-031-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.
* score: Add and use thread get/set CPU functionsSebastian Huber2014-03-311-1/+1
|
* Change all references of rtems.com to rtems.org.Chris Johns2014-03-211-1/+1
|
* smp: Rename _Scheduler_simple_smp_Start_idle()Sebastian Huber2013-08-201-0/+40
Rename _Scheduler_simple_smp_Start_idle() to _Scheduler_SMP_Start_idle().