summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/score/schedulerimpl.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-04-27Return status code for _Scheduler_Set_affinity()Sebastian Huber1-9/+18
This avoids having conditional statements to get the API-specific status code.
2021-04-27rtems: Change rtems_task_get_affinity() statusSebastian Huber1-1/+1
In case the processor set is not large enough to contain the processor affinity set of the task return RTEMS_INVALID_SIZE instead of RTEMS_INVALID_NUMBER. This is more in line with other directives since the issue is related to the size of an object. Close #4393.
2021-04-27Return status code for _Scheduler_Get_affinity()Sebastian Huber1-3/+4
This avoids having conditional statements to get the API-specific status code.
2020-12-02score: Canonicalize Doxygen @file commentsSebastian Huber1-4/+2
Use common phrases for the file brief descriptions. Update #3706.
2020-12-02score: Canonicalize Doxygen groupsSebastian Huber1-2/+4
Adjust group identifier and names to be in line with a common pattern. Use common phrases for the group brief descriptions. Update #3706.
2020-09-18score: Document _Scheduler_Try_to_schedule_node()Sebastian Huber1-10/+34
2020-09-18score: Improve Scheduler Handler documentationSebastian Huber1-1/+28
2020-02-25score: _Scheduler_Is_non_preempt_mode_supported()Sebastian Huber1-0/+18
If the non-preempt mode for threads is supported depends on the scheduler implementation. Add _Scheduler_Is_non_preempt_mode_supported() to indicate this. Update #3876.
2019-06-28score: Add and use _Thread_Get_unmapped_priority().Sebastian Huber1-30/+0
Add and use _Thread_Get_unmapped_real_priority().
2019-05-13doxygen: score: adjust doc in schedulerimpl.h to doxygen guidelinesAndreas Dachsberger1-70/+227
Update #3706.
2019-04-04doxygen: Rename Score* groups in RTEMSScore*Sebastian Huber1-1/+1
Update #3706
2018-09-10score: Add thread pin/unpin supportSebastian Huber1-11/+9
Add support to temporarily pin a thread to its current processor. This may be used to access per-processor data structures in critical sections with enabled thread dispatching, e.g. a pinned thread is allowed to block. Update #3508.
2018-09-10score: Modify _Scheduler_Unblock()Sebastian Huber1-5/+11
In SMP configurations, obtain the scheduler node for the block and unblock operations through the same way via Thread_Control::Scheduler::Scheduler_node. This symmetry is important in a follow up patch which introduces thread pinning. Update #3508.
2018-01-25Remove make preinstallChris Johns1-0/+0
A speciality of the RTEMS build system was the make preinstall step. It copied header files from arbitrary locations into the build tree. The header files were included via the -Bsome/build/tree/path GCC command line option. This has at least seven problems: * The make preinstall step itself needs time and disk space. * Errors in header files show up in the build tree copy. This makes it hard for editors to open the right file to fix the error. * There is no clear relationship between source and build tree header files. This makes an audit of the build process difficult. * The visibility of all header files in the build tree makes it difficult to enforce API barriers. For example it is discouraged to use BSP-specifics in the cpukit. * An introduction of a new build system is difficult. * Include paths specified by the -B option are system headers. This may suppress warnings. * The parallel build had sporadic failures on some hosts. This patch removes the make preinstall step. All installed header files are moved to dedicated include directories in the source tree. Let @RTEMS_CPU@ be the target architecture, e.g. arm, powerpc, sparc, etc. Let @RTEMS_BSP_FAMILIY@ be a BSP family base directory, e.g. erc32, imx, qoriq, etc. The new cpukit include directories are: * cpukit/include * cpukit/score/cpu/@RTEMS_CPU@/include * cpukit/libnetworking The new BSP include directories are: * bsps/include * bsps/@RTEMS_CPU@/include * bsps/@RTEMS_CPU@/@RTEMS_BSP_FAMILIY@/include There are build tree include directories for generated files. The include directory order favours the most general header file, e.g. it is not possible to override general header files via the include path order. The "bootstrap -p" option was removed. The new "bootstrap -H" option should be used to regenerate the "headers.am" files. Update #3254.
2017-11-20score: Optimize scheduler priority updatesSebastian Huber1-0/+30
Thread priority changes may append or prepend the thread to its priority group on the scheduler ready queue. Previously, a separate priority value and a prepend-it flag in the scheduler node were used to propagate a priority change to the scheduler. Now, use an append-it bit in the priority control and reduce the plain priority value to 63 bits. This change leads to a significant code size reduction (about 25%) of the SMP schedulers. The negligible increase of the standard priority scheduler is due to some additional shift operations (SCHEDULER_PRIORITY_MAP() and SCHEDULER_PRIORITY_UNMAP()). Before: text filename 136 sparc-rtems5/c/erc32/cpukit/score/src/libscore_a-schedulersimpleblock.o 464 sparc-rtems5/c/erc32/cpukit/score/src/libscore_a-schedulersimplechangepriority.o 24 sparc-rtems5/c/erc32/cpukit/score/src/libscore_a-schedulersimple.o 108 sparc-rtems5/c/erc32/cpukit/score/src/libscore_a-schedulersimpleschedule.o 292 sparc-rtems5/c/erc32/cpukit/score/src/libscore_a-schedulersimpleunblock.o 264 sparc-rtems5/c/erc32/cpukit/score/src/libscore_a-schedulersimpleyield.o text filename 280 sparc-rtems5/c/erc32/cpukit/score/src/libscore_a-schedulerpriorityblock.o 488 sparc-rtems5/c/erc32/cpukit/score/src/libscore_a-schedulerprioritychangepriority.o 200 sparc-rtems5/c/erc32/cpukit/score/src/libscore_a-schedulerpriority.o 164 sparc-rtems5/c/erc32/cpukit/score/src/libscore_a-schedulerpriorityschedule.o 328 sparc-rtems5/c/erc32/cpukit/score/src/libscore_a-schedulerpriorityunblock.o 200 sparc-rtems5/c/erc32/cpukit/score/src/libscore_a-schedulerpriorityyield.o text filename 24112 arm-rtems5/c/imx7/cpukit/score/src/libscore_a-scheduleredfsmp.o text filename 37204 sparc-rtems5/c/gr740/cpukit/score/src/libscore_a-scheduleredfsmp.o text filename 42236 powerpc-rtems5/c/qoriq_e6500_32/cpukit/score/src/libscore_a-scheduleredfsmp.o After: text filename 136 sparc-rtems5/c/erc32/cpukit/score/src/libscore_a-schedulersimpleblock.o 272 sparc-rtems5/c/erc32/cpukit/score/src/libscore_a-schedulersimplechangepriority.o 24 sparc-rtems5/c/erc32/cpukit/score/src/libscore_a-schedulersimple.o 108 sparc-rtems5/c/erc32/cpukit/score/src/libscore_a-schedulersimpleschedule.o 292 sparc-rtems5/c/erc32/cpukit/score/src/libscore_a-schedulersimpleunblock.o 264 sparc-rtems5/c/erc32/cpukit/score/src/libscore_a-schedulersimpleyield.o text filename 280 sparc-rtems5/c/erc32/cpukit/score/src/libscore_a-schedulerpriorityblock.o 488 sparc-rtems5/c/erc32/cpukit/score/src/libscore_a-schedulerprioritychangepriority.o 208 sparc-rtems5/c/erc32/cpukit/score/src/libscore_a-schedulerpriority.o 164 sparc-rtems5/c/erc32/cpukit/score/src/libscore_a-schedulerpriorityschedule.o 332 sparc-rtems5/c/erc32/cpukit/score/src/libscore_a-schedulerpriorityunblock.o 200 sparc-rtems5/c/erc32/cpukit/score/src/libscore_a-schedulerpriorityyield.o text filename 18860 arm-rtems5/c/imx7/cpukit/score/src/libscore_a-scheduleredfsmp.o text filename 28520 sparc-rtems5/c/gr740/cpukit/score/src/libscore_a-scheduleredfsmp.o text filename 32664 powerpc-rtems5/c/qoriq_e6500_32/cpukit/score/src/libscore_a-scheduleredfsmp.o
2017-10-26score: Delete _Scheduler_Thread_set_priority()Sebastian Huber1-12/+0
2017-10-11score: Remove CPU_set_ControlSebastian Huber1-1/+0
Use Processor_mask instead. Update #2514.
2017-07-10score: Fix set schedulerSebastian Huber1-5/+13
Ensure that the thread processor affinity fits the new scheduler instance. Update #3059.
2017-07-07score: Add scheduler node to set affinity opSebastian Huber1-0/+2
Update #3059.
2017-07-07score: Fix default set affinitySebastian Huber1-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.
2017-07-07score: Use processor mask for set affinitySebastian Huber1-26/+5
Update #3059.
2017-07-07score: Add processor set to scheduler contextSebastian Huber1-18/+7
Replace the simple processor count with the processor set owned by the scheduler instance. Update #3059.
2017-07-07score: Move processor affinity to Thread_ControlSebastian Huber1-14/+0
Update #3059.
2017-03-07score: Fix scheduler yield in SMP configurationsSebastian Huber1-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.
2017-02-03score: Improve scheduler helping protocolSebastian Huber1-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.
2017-01-11Remove obsolete __RTEMS_HAVE_SYS_CPUSET_H__Joel Sherrill1-4/+0
2016-11-23score: Delete obsolete scheduler debug aidSebastian Huber1-6/+0
2016-11-09score: Rename _Scheduler_AssignmentsSebastian Huber1-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.
2016-11-09score: Add scheduler to per-CPU informationSebastian Huber1-20/+16
This makes it possible to adjust the scheduler of a processor at run-time. Update #2797.
2016-11-09score: Simplify _Scheduler_Get_by_id()Sebastian Huber1-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.
2016-11-04score: Fix _Scheduler_Try_to_schedule_node()Sebastian Huber1-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.
2016-11-03score: Delete unused _Scheduler_Is_id_valid()Sebastian Huber1-10/+0
2016-11-03score: Relax _Scheduler_Set() restrictionsSebastian Huber1-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.
2016-11-02score: Simplify yield and unblock scheduler opsSebastian Huber1-4/+4
Update #2556.
2016-11-02score: Introduce Thread_Scheduler_control::homeSebastian Huber1-36/+9
Replace Thread_Scheduler_control::control and Thread_Scheduler_control::own_control with new Thread_Scheduler_control::home. Update #2556.
2016-11-02score: Delete Thread_Scheduler_control::own_nodeSebastian Huber1-3/+2
Update #2556.
2016-11-02score: Delete Thread_Scheduler_control::nodeSebastian Huber1-12/+0
Update #2556.
2016-11-02score: Second part of new MrsP implementationSebastian Huber1-169/+91
Update #2556.
2016-11-02score: Delete unused scheduler ask for help X opSebastian Huber1-152/+0
2016-11-02score: Delete _Scheduler_Ask_for_help_if_necessarySebastian Huber1-99/+1
Delete Thread_Control::Resource_node. Update #2556.
2016-11-02score: Delete unused functionsSebastian Huber1-42/+0
Delete _Scheduler_Thread_change_resource_root() and _Scheduler_Thread_change_help_state(). Update #2556.
2016-11-02score: First part of new MrsP implementationSebastian Huber1-0/+56
Update #2556.
2016-11-02score: Use scheduler instance specific locksSebastian Huber1-4/+16
Update #2556.
2016-11-02score: Yield support for new SMP helping protocolSebastian Huber1-11/+47
Update #2556.
2016-11-02score: Add new SMP scheduler helping protocolSebastian Huber1-36/+122
Update #2556.
2016-11-02score: Add _Thread_Scheduler_process_requests()Sebastian Huber1-0/+9
Update #2556.
2016-11-02score: Add scheduler node requestsSebastian Huber1-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.
2016-11-02score: Protect thread CPU by thread scheduler lockSebastian Huber1-5/+8
Update #2556.
2016-11-02score: Protect thread scheduler state changesSebastian Huber1-6/+25
Update #2556.
2016-11-02score: Pass scheduler node to unblock operationSebastian Huber1-1/+5
Changed for consistency with other scheduler operations. Update #2556.