summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/src/tasksetscheduler.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* rtems: Canonicalize Doxygen @file commentsSebastian Huber2020-12-021-0/+9
| | | | | | Use common phrases for the file brief descriptions. Update #3706.
* Canonicalize config.h includeSebastian Huber2020-04-161-2/+2
| | | | | | | | Use the following variant which was already used by most source files: #ifdef HAVE_CONFIG_H #include "config.h" #endif
* score: Add _Thread_queue_Dispatch_disable()Sebastian Huber2017-10-101-4/+1
|
* score: Simplify _Scheduler_Get_by_id()Sebastian Huber2016-11-091-1/+2
| | | | | | | | | | Avoid dead code in non-SMP configurations. Return scheduler identifier independent of the current processor count of the scheduler via rtems_scheduler_ident(), since this value may change during run-time. Check the processor count in _Scheduler_Set() under scheduler lock protection. Update #2797.
* score: Introduce Thread_queue_Lock_contextSebastian Huber2016-09-081-2/+4
| | | | | | Introduce Thread_queue_Lock_context to contain the context necessary for thread queue lock and thread wait lock acquire/release operations to reduce the Thread_Control size.
* score: Fix for RTEMS_DEBUGSebastian Huber2016-08-031-0/+1
|
* score: Turn thread lock into thread wait lockSebastian Huber2016-07-271-10/+8
| | | | | | | | | The _Thread_Lock_acquire() function had a potentially infinite run-time due to the lack of fairness at atomic operations level. Update #2412. Update #2556. Update #2765.
* rtems: Fix rtems_task_set_scheduler() APISebastian Huber2016-07-011-6/+15
| | | | | | | | | | | Task priorities are only valid within a scheduler instance. The rtems_task_set_scheduler() directive moves a task from one scheduler instance to another using the current priority of the thread. However, the current task priority of the source scheduler instance is undefined in the target scheduler instance. Add a third parameter to specify the priority. Close #2749.
* Replace *_Get_interrupt_disable() with *_Get()Sebastian Huber2016-05-201-1/+1
| | | | | Uniformly use *_Get() to get an object by identifier with a lock context.
* score: Avoid Giant lock for scheduler set/getSebastian Huber2016-05-121-22/+28
| | | | Update #2555.
* rtems: Clarify task set/get scheduler parametersSebastian Huber2014-05-201-2/+2
|
* score: Implement forced thread migrationSebastian Huber2014-05-071-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current implementation of task migration in RTEMS has some implications with respect to the interrupt latency. It is crucial to preserve the system invariant that a task can execute on at most one processor in the system at a time. This is accomplished with a boolean indicator in the task context. The processor architecture specific low-level task context switch code will mark that a task context is no longer executing and waits that the heir context stopped execution before it restores the heir context and resumes execution of the heir task. So there is one point in time in which a processor is without a task. This is essential to avoid cyclic dependencies in case multiple tasks migrate at once. Otherwise some supervising entity is necessary to prevent life-locks. Such a global supervisor would lead to scalability problems so this approach is not used. Currently the thread dispatch is performed with interrupts disabled. So in case the heir task is currently executing on another processor then this prolongs the time of disabled interrupts since one processor has to wait for another processor to make progress. It is difficult to avoid this issue with the interrupt latency since interrupts normally store the context of the interrupted task on its stack. In case a task is marked as not executing we must not use its task stack to store such an interrupt context. We cannot use the heir stack before it stopped execution on another processor. So if we enable interrupts during this transition we have to provide an alternative task independent stack for this time frame. This issue needs further investigation.
* rtems: Add task get/set schedulerSebastian Huber2014-04-151-0/+58