mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-12-06 21:25:00 -05:00
Merge branch 'main' into update-pxcurrentTCB
This commit is contained in:
commit
ba2306d098
15 changed files with 1469 additions and 116 deletions
8
tasks.c
8
tasks.c
|
|
@ -4747,10 +4747,6 @@ BaseType_t xTaskIncrementTick( void )
|
|||
TickType_t xItemValue;
|
||||
BaseType_t xSwitchRequired = pdFALSE;
|
||||
|
||||
#if ( configUSE_PREEMPTION == 1 ) && ( configNUMBER_OF_CORES > 1 )
|
||||
BaseType_t xYieldRequiredForCore[ configNUMBER_OF_CORES ] = { pdFALSE };
|
||||
#endif /* #if ( configUSE_PREEMPTION == 1 ) && ( configNUMBER_OF_CORES > 1 ) */
|
||||
|
||||
traceENTER_xTaskIncrementTick();
|
||||
|
||||
/* Called by the portable layer each time a tick interrupt occurs.
|
||||
|
|
@ -4904,7 +4900,7 @@ BaseType_t xTaskIncrementTick( void )
|
|||
{
|
||||
if( listCURRENT_LIST_LENGTH( &( pxReadyTasksLists[ pxCurrentTCBs[ xCoreID ]->uxPriority ] ) ) > 1U )
|
||||
{
|
||||
xYieldRequiredForCore[ xCoreID ] = pdTRUE;
|
||||
xYieldPendings[ xCoreID ] = pdTRUE;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -4956,7 +4952,7 @@ BaseType_t xTaskIncrementTick( void )
|
|||
if( pxCurrentTCBs[ xCoreID ]->xPreemptionDisable == pdFALSE )
|
||||
#endif
|
||||
{
|
||||
if( ( xYieldRequiredForCore[ xCoreID ] != pdFALSE ) || ( xYieldPendings[ xCoreID ] != pdFALSE ) )
|
||||
if( xYieldPendings[ xCoreID ] != pdFALSE )
|
||||
{
|
||||
if( xCoreID == xCurrentCoreID )
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue