mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-01 08:54:14 -04:00
Convert some ports to use xTaskIncrementTick() in place of vTaskIncrementTick().
Move DSB instructions to before WFI instructions in line with ARM recommendations.
This commit is contained in:
parent
4e9374ad90
commit
686d190798
27 changed files with 128 additions and 142 deletions
|
@ -301,18 +301,7 @@ static unsigned long prvProcessTickInterrupt( void )
|
|||
unsigned long ulSwitchRequired;
|
||||
|
||||
/* Process the tick itself. */
|
||||
vTaskIncrementTick();
|
||||
#if( configUSE_PREEMPTION != 0 )
|
||||
{
|
||||
/* A context switch is only automatically performed from the tick
|
||||
interrupt if the pre-emptive scheduler is being used. */
|
||||
ulSwitchRequired = pdTRUE;
|
||||
}
|
||||
#else
|
||||
{
|
||||
ulSwitchRequired = pdFALSE;
|
||||
}
|
||||
#endif
|
||||
ulSwitchRequired = ( unsigned long ) xTaskIncrementTick();
|
||||
|
||||
return ulSwitchRequired;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue