Compare commits

...

2 commits

Author SHA1 Message Date
Ian Thompson 8001eccacb
Merge dc7bd942d7 into 4ee6a1f22f 2025-04-25 13:37:01 +02:00
Ian Thompson dc7bd942d7 SMP: Ensure idle tasks have affinity set to run only on their own core.
Signed-off-by: Ian Thompson <ianst@cadence.com>
2025-04-11 15:05:47 -07:00

View file

@ -3676,6 +3676,9 @@ static BaseType_t prvCreateIdleTasks( void )
/* Assign idle task to each core before SMP scheduler is running. */
xIdleTaskHandles[ xCoreID ]->xTaskRunState = xCoreID;
pxCurrentTCBs[ xCoreID ] = xIdleTaskHandles[ xCoreID ];
#if ( configUSE_CORE_AFFINITY == 1 )
vTaskCoreAffinitySet(xIdleTaskHandles[ xCoreID ], 1 << xCoreID);
#endif
}
#endif
}