Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
chinglee-iot authored Oct 5, 2023
2 parents f515ca7 + 317bc0c commit d72eba8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tasks.c
Original file line number Diff line number Diff line change
Expand Up @@ -2462,12 +2462,12 @@ static void prvInitialiseNewTask( TaskFunction_t pxTaskCode,
UBaseType_t uxCurrentBasePriority, uxPriorityUsedOnEntry;
BaseType_t xYieldRequired = pdFALSE;

traceENTER_vTaskPrioritySet( xTask, uxNewPriority );

#if ( configNUMBER_OF_CORES > 1 )
BaseType_t xYieldForTask = pdFALSE;
#endif

traceENTER_vTaskPrioritySet( xTask, uxNewPriority );

configASSERT( uxNewPriority < configMAX_PRIORITIES );

/* Ensure the new priority is valid. */
Expand Down Expand Up @@ -4376,12 +4376,12 @@ BaseType_t xTaskIncrementTick( void )
TickType_t xItemValue;
BaseType_t xSwitchRequired = pdFALSE;

traceENTER_xTaskIncrementTick();

#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.
* Increments the tick then checks to see if the new tick value will cause any
* tasks to be unblocked. */
Expand Down Expand Up @@ -5566,10 +5566,10 @@ static portTASK_FUNCTION( prvIdleTask, pvParameters )
const UBaseType_t uxNonApplicationTasks = 1;
#endif /* INCLUDE_vTaskSuspend */

traceENTER_eTaskConfirmSleepModeStatus();

eSleepModeStatus eReturn = eStandardSleep;

traceENTER_eTaskConfirmSleepModeStatus();

/* This function must be called from a critical section. */

if( listCURRENT_LIST_LENGTH( &xPendingReadyList ) != 0 )
Expand Down

0 comments on commit d72eba8

Please sign in to comment.