summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/pthreadsetaffinitynp.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* cpukit/posix/src/[p-z]*.c: Change license to BSD-2Joel Sherrill2022-02-281-3/+22
| | | | Updates #3053.
* Return status code for _Scheduler_Set_affinity()Sebastian Huber2021-04-271-3/+4
| | | | | This avoids having conditional statements to get the API-specific status code.
* doxygen: Switch @brief and @ingroupSebastian Huber2020-04-281-1/+2
| | | | This order change fixes the Latex documentation build via Doxygen.
* Canonicalize config.h includeSebastian Huber2020-04-161-1/+1
| | | | | | | | Use the following variant which was already used by most source files: #ifdef HAVE_CONFIG_H #include "config.h" #endif
* Move feature macro before "config.h" includeSebastian Huber2019-11-191-1/+2
| | | | | | | This allows to use header includes in "config.h" to reduce the build configuration checks. Update #3818.
* score: Remove CPU_set_ControlSebastian Huber2017-10-111-1/+0
| | | | | | Use Processor_mask instead. Update #2514.
* posix: Simplify POSIX_API_ControlSebastian Huber2017-10-091-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | Return stack area via pthread_getattr_np(). Simplify * pthread_attr_setaffinity_np(), and * pthread_attr_getaffinity_np() and let the scheduler do the more sophisticated error checks. Make * pthread_setaffinity_np(), * pthread_getaffinity_np(), * pthread_attr_setaffinity_np(), and * pthread_attr_getaffinity_np() available in all configurations. Update #2514. Close #3145. Close #3168.
* Fix CPU_COPY() usageSebastian Huber2017-06-071-1/+1
| | | | | | | | The original CPU_COPY() support of Newlib <sys/cpuset.h> had the parameters in the wrong order. This is fixed in Newlib since 2017-05-22. Update #3023.
* 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 _Scheduler_Set_affinity()Sebastian Huber2016-05-121-28/+31
| | | | Update #2555.
* score: Add clustered/partitioned schedulingSebastian Huber2014-04-151-1/+0
| | | | | | | | | | | | | | | Clustered/partitioned scheduling helps to control the worst-case latencies in the system. The goal is to reduce the amount of shared state in the system and thus prevention of lock contention. Modern multi-processor systems tend to have several layers of data and instruction caches. With clustered/partitioned scheduling it is possible to honour the cache topology of a system and thus avoid expensive cache synchronization traffic. We have clustered scheduling in case the set of processors of a system is partitioned into non-empty pairwise-disjoint subsets. These subsets are called clusters. Clusters with a cardinality of one are partitions. Each cluster is owned by exactly one scheduler instance.
* score: Add scheduler control to scheduler opsSebastian Huber2014-04-041-7/+10
| | | | | Scheduler operations must be free of a global scheduler context to enable partitioned/clustered scheduling.
* posix: Move affinity from thread to scheduler.Jennifer Averett2014-04-031-7/+7
|
* Remove trailing whitespace in previous patchesJennifer Averett2014-03-071-1/+1
|
* posix: Add dynamic pthread get and set affinity.Jennifer Averett2014-03-071-0/+69
This patch adds the following methods: + pthread_get_affinity_np + pthread_set_affinity_np