mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-05-17 23:46:36 +08:00
Add default core affinity config value. (#996)
* Add default core affinity config value. --------- Co-authored-by: Anubhav Rawal <rawalexe@amazon.com>
This commit is contained in:
@ -496,6 +496,15 @@
|
||||
* run any task on any available core. */
|
||||
#define configUSE_CORE_AFFINITY 0
|
||||
|
||||
/* When using SMP with core affinity feature enabled, set
|
||||
* configTASK_DEFAULT_CORE_AFFINITY to change the default core affinity mask for
|
||||
* tasks created without an affinity mask specified. Setting the define to 1 would
|
||||
* make such tasks run on core 0 and setting it to (1 << portGET_CORE_ID()) would
|
||||
* make such tasks run on the current core. This config value is useful, if
|
||||
* swapping tasks between cores is not supported (e.g. Tricore) or if legacy code
|
||||
* should be controlled. Defaults to tskNO_AFFINITY if left undefined. */
|
||||
#define configTASK_DEFAULT_CORE_AFFINITY tskNO_AFFINITY
|
||||
|
||||
/* When using SMP (i.e. configNUMBER_OF_CORES is greater than one), if
|
||||
* configUSE_TASK_PREEMPTION_DISABLE is set to 1, individual tasks can be set to
|
||||
* either pre-emptive or co-operative mode using the vTaskPreemptionDisable and
|
||||
|
Reference in New Issue
Block a user