mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2026-07-10 13:29:45 -04:00
Add affinity to IDLE tasks in SMP systems (#1415)
This commit is contained in:
parent
a8c9d35152
commit
d3b074a01e
3 changed files with 17 additions and 1 deletions
|
|
@ -558,6 +558,13 @@
|
|||
* tskNO_AFFINITY if left undefined. */
|
||||
#define configTIMER_SERVICE_TASK_CORE_AFFINITY tskNO_AFFINITY
|
||||
|
||||
/* When using SMP (i.e. configNUMBER_OF_CORES is greater than one), set
|
||||
* configIDLE_AFFINITY to 1 to pin each Idle task to its corresponding
|
||||
* core. When set to 1, Idle task N will only run on core N, using an affinity
|
||||
* mask of (1 << N). Set to 0 to allow the scheduler to run Idle tasks on any
|
||||
* available core. Defaults to 0 if left undefined. */
|
||||
#define configIDLE_AFFINITY 0
|
||||
|
||||
/******************************************************************************/
|
||||
/* ARMv8-M secure side port related definitions. ******************************/
|
||||
/******************************************************************************/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue