fix(freertos-smp): Stop unconditional yielding in vTaskPreemptionEnable

This commit is contained in:
Sudeep Mohanty 2025-08-02 10:48:15 +02:00
parent 40a991d8eb
commit 7df62027cf

View file

@ -3334,7 +3334,7 @@ static void prvInitialiseNewTask( TaskFunction_t pxTaskCode,
}
else
{
if( ( taskTASK_IS_RUNNING( pxTCB ) == pdTRUE ) )
if( xYieldPendings[ pxTCB->xTaskRunState ] != pdFALSE && ( taskTASK_IS_RUNNING( pxTCB ) != pdFALSE ) )
{
prvYieldCore( pxTCB->xTaskRunState );
}