mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-19 17:48:33 -04:00
fix(freertos-smp): Stop unconditional yielding in vTaskPreemptionEnable
This commit is contained in:
parent
40a991d8eb
commit
7df62027cf
1 changed files with 1 additions and 1 deletions
2
tasks.c
2
tasks.c
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue