summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/schedulerimpl.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* score: Fix set schedulerSebastian Huber2017-07-101-5/+13
| | | | | | | Ensure that the thread processor affinity fits the new scheduler instance. Update #3059.
* score: Add scheduler node to set affinity opSebastian Huber2017-07-071-0/+2
| | | | Update #3059.
* score: Fix default set affinitySebastian Huber2017-07-071-4/+3
| | | | | | | | The set of online processors must be a subset of the thread processor affinity for the schedulers without arbitrary processor affinity support to avoid problems in case of processor addition and removal. Update #3059.
* score: Use processor mask for set affinitySebastian Huber2017-07-071-26/+5
| | | | Update #3059.
* score: Add processor set to scheduler contextSebastian Huber2017-07-071-18/+7
| | | | | | | Replace the simple processor count with the processor set owned by the scheduler instance. Update #3059.
* score: Move processor affinity to Thread_ControlSebastian Huber2017-07-071-14/+0
| | | | Update #3059.
* score: Fix scheduler yield in SMP configurationsSebastian Huber2017-03-071-18/+5
| | | | | | | | | Check that no ask help request is registered during unblock and yield scheduler operations. There is no need to ask for help if a scheduled thread yields, since this is already covered by the pre-emption detection. Update #2556.
* score: Improve scheduler helping protocolSebastian Huber2017-02-031-98/+41
| | | | | | | | | | | Only register ask for help requests in the scheduler unblock and yield operations. The actual ask for help operation is carried out during _Thread_Do_dispatch() on a processor related to the thread. This yields a better separation of scheduler instances. A thread of one scheduler instance should not be forced to carry out too much work for threads on other scheduler instances. Update #2556.
* Remove obsolete __RTEMS_HAVE_SYS_CPUSET_H__Joel Sherrill2017-01-111-4/+0
|
* score: Delete obsolete scheduler debug aidSebastian Huber2016-11-231-6/+0
|
* score: Rename _Scheduler_AssignmentsSebastian Huber2016-11-091-23/+0
| | | | | | | | Rename _Scheduler_Assignments into _Scheduler_Initial_assignments to make it clear that they may not reflect the run-time scheduler assignment. Update #2797.
* score: Add scheduler to per-CPU informationSebastian Huber2016-11-091-20/+16
| | | | | | | This makes it possible to adjust the scheduler of a processor at run-time. Update #2797.
* score: Simplify _Scheduler_Get_by_id()Sebastian Huber2016-11-091-44/+66
| | | | | | | | | | 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: Fix _Scheduler_Try_to_schedule_node()Sebastian Huber2016-11-041-10/+14
| | | | | In case the thread is scheduled and the sticky level is greater than one, then we must use an idle thread for correctness of MrsP.
* score: Delete unused _Scheduler_Is_id_valid()Sebastian Huber2016-11-031-10/+0
|
* score: Relax _Scheduler_Set() restrictionsSebastian Huber2016-11-031-4/+5
| | | | | | No longer unconditionally prevent scheduler changes if the thread owns resources. Prevent a scheduler change only in case other threads wait for the resource.
* score: Simplify yield and unblock scheduler opsSebastian Huber2016-11-021-4/+4
| | | | Update #2556.
* score: Introduce Thread_Scheduler_control::homeSebastian Huber2016-11-021-36/+9
| | | | | | | | Replace Thread_Scheduler_control::control and Thread_Scheduler_control::own_control with new Thread_Scheduler_control::home. Update #2556.
* score: Delete Thread_Scheduler_control::own_nodeSebastian Huber2016-11-021-3/+2
| | | | Update #2556.
* score: Delete Thread_Scheduler_control::nodeSebastian Huber2016-11-021-12/+0
| | | | Update #2556.
* score: Second part of new MrsP implementationSebastian Huber2016-11-021-169/+91
| | | | Update #2556.
* score: Delete unused scheduler ask for help X opSebastian Huber2016-11-021-152/+0
|
* score: Delete _Scheduler_Ask_for_help_if_necessarySebastian Huber2016-11-021-99/+1
| | | | | | Delete Thread_Control::Resource_node. Update #2556.
* score: Delete unused functionsSebastian Huber2016-11-021-42/+0
| | | | | | | Delete _Scheduler_Thread_change_resource_root() and _Scheduler_Thread_change_help_state(). Update #2556.
* score: First part of new MrsP implementationSebastian Huber2016-11-021-0/+56
| | | | Update #2556.
* score: Use scheduler instance specific locksSebastian Huber2016-11-021-4/+16
| | | | Update #2556.
* score: Yield support for new SMP helping protocolSebastian Huber2016-11-021-11/+47
| | | | Update #2556.
* score: Add new SMP scheduler helping protocolSebastian Huber2016-11-021-36/+122
| | | | Update #2556.
* score: Add _Thread_Scheduler_process_requests()Sebastian Huber2016-11-021-0/+9
| | | | Update #2556.
* score: Add scheduler node requestsSebastian Huber2016-11-021-0/+8
| | | | | | | Add the ability to add/remove scheduler nodes to/from the set of scheduler nodes available to the schedulers for a particular thread. Update #2556.
* score: Protect thread CPU by thread scheduler lockSebastian Huber2016-11-021-5/+8
| | | | Update #2556.
* score: Protect thread scheduler state changesSebastian Huber2016-11-021-6/+25
| | | | Update #2556.
* score: Pass scheduler node to unblock operationSebastian Huber2016-11-021-1/+5
| | | | | | Changed for consistency with other scheduler operations. Update #2556.
* score: Pass scheduler node to block operationSebastian Huber2016-11-021-4/+12
| | | | | | Changed for consistency with other scheduler operations. Update #2556.
* score: Pass scheduler node to yield operationSebastian Huber2016-11-021-1/+5
| | | | | | Changed for consistency with other scheduler operations. Update #2556.
* score: Pass scheduler node to update priority opSebastian Huber2016-11-021-12/+16
| | | | | | | This enables to call this scheduler operation for all scheduler nodes available to a thread. Update #2556.
* score: Rename scheduler ask for help stuffSebastian Huber2016-11-021-4/+4
| | | | | | | | Rename the scheduler ask for help stuff since this will be replaced step by step with a second generation of the scheduler helping protocol. Keep the old one for now in parallel to reduce the patch set sizes. Update #2556.
* score: Manage scheduler nodes via thread queuesSebastian Huber2016-09-211-0/+7
| | | | Update #2556.
* score: Add scheduler node table for each threadSebastian Huber2016-09-211-14/+27
| | | | Update #2556.
* score: Rework thread priority managementSebastian Huber2016-09-211-35/+51
| | | | | | | | | | | | | | | | | | | | | | | | | Add priority nodes which contribute to the overall thread priority. The actual priority of a thread is now an aggregation of priority nodes. The thread priority aggregation for the home scheduler instance of a thread consists of at least one priority node, which is normally the real priority of the thread. The locking protocols (e.g. priority ceiling and priority inheritance), rate-monotonic period objects and the POSIX sporadic server add, change and remove priority nodes. A thread changes its priority now immediately, e.g. priority changes are not deferred until the thread releases its last resource. Replace the _Thread_Change_priority() function with * _Thread_Priority_perform_actions(), * _Thread_Priority_add(), * _Thread_Priority_remove(), * _Thread_Priority_change(), and * _Thread_Priority_update(). Update #2412. Update #2556.
* score: Add scheduler node implementation headerSebastian Huber2016-09-081-100/+0
| | | | Update #2556.
* score: Move thread wait node to scheduler nodeSebastian Huber2016-09-081-8/+9
| | | | Update #2556.
* score: Fix a release/cancel job race conditionSebastian Huber2016-08-041-4/+12
| | | | | | | | Split up the potential thread priority change in the scheduler release/cancel job operation. Protect the rate monotonic period state with a dedicated SMP lock. This avoids a race condition during _Rate_monotonic_Timeout() while _Rate_monotonic_Cancel() is called on another processor.
* score: Indroduce cancel job scheduler operationSebastian Huber2016-08-041-0/+14
| | | | | Do not use a deadline value of zero to indicate a job cancellation. Use a dedicated scheduler operation for this.
* score: Turn thread lock into thread wait lockSebastian Huber2016-07-271-0/+14
| | | | | | | | | 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.
* score: Change scheduler node init and destroySebastian Huber2016-07-011-6/+14
| | | | | | Provide the scheduler node to initialize or destroy to the corresponding operations. This makes it possible to have more than one scheduler node per thread.
* rtems: Fix rtems_task_set_scheduler() APISebastian Huber2016-07-011-45/+56
| | | | | | | | | | | 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.
* score: Silence integer conversion warningsSebastian Huber2016-06-241-1/+1
|
* score: Add thread priority to scheduler nodesSebastian Huber2016-06-221-55/+78
| | | | | | | | | | | | | | | | | | The thread priority is manifest in two independent areas. One area is the user visible thread priority along with a potential thread queue. The other is the scheduler. Currently, a thread priority update via _Thread_Change_priority() first updates the user visble thread priority and the thread queue, then the scheduler is notified if necessary. The priority is passed to the scheduler via a local variable. A generation counter ensures that the scheduler discards out-of-date priorities. This use of a local variable ties the update in these two areas close together. For later enhancements and the OMIP locking protocol implementation we need more flexibility. Add a thread priority information block to Scheduler_Node and synchronize priority value updates via a sequence lock on SMP configurations. Update #2556.
* score: Modify release job scheduler operationSebastian Huber2016-06-221-3/+3
| | | | | | Pass the deadline in watchdog ticks to the scheduler. Update #2173.