esp-idf/components/freertos/FreeRTOS-Kernel/portable
Darian Leung 7a4e1fee99 freertos: Fix xTaskIncrementTick()
Previously, xTaskIncrementTick() would always trigger a yield (i.e., return pdTRUE)
when called on core 1. This would mean core 1 would call vTaskSwitchContext() on
every tick, leading to uneccesary CPU overhead.

This commit fixes xTaskIncrementTick() in the following ways:

- Clearly mark IDF additions in xTaskIncrementTick()
- Moved esp_vApplicationTickHook() to be called direclty in xPortSysTickHandler() in order to
  simplify xTaskIncrementTick().
- Only core 0 calls xTaskIncrementTick() in order to simplify the function's logic. Core 0 is
  solely responsible for managing xTickCount and xPendedTicks
- All other cores call xTaskIncrementTickOtherCores() instead which is a simplified version of
  xTaskIncrementTick() and handles the following:
    - Check if core 0 has unblocked a higher priority task to run
    - Check if the current core requires time slicing
    - Call vApplicationTickHook()
2022-07-20 11:31:50 +08:00
..
linux/include/freertos bugfix (freertos): added stdint.h to linux portmacro header 2022-02-16 16:51:22 +08:00
priv_include freertos: update freertos folder structure to match upstream 2021-10-29 12:05:13 +08:00
riscv freertos: fix inlining for xtensa port 2022-07-07 09:04:51 +00:00
xtensa Merge branch 'bugfix/interrupt_stack_bss' into 'master' 2022-07-12 13:44:07 +08:00
port_common.c freertos: Fix issue with bootup failure in ESP_MAIN_TASK_AFFINITY_CPU1 config 2022-07-01 05:40:46 +00:00
port_systick.c freertos: Fix xTaskIncrementTick() 2022-07-20 11:31:50 +08:00