mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
31ec0a7c44
The block which dispatches ticks on CPU1 was a copy of the code block for the normal path (CPU0). It used to check uxPendedTicks, with the logic that uxPendedTicks can be 0 iff the scheduler is not suspended. On CPU1 however, uxPendedTicks is not related to the state of the scheduler (as uxPendedTicks is updated on CPU0). Due to this, if CPU0 scheduler was suspended, and uxPendedTicks happened to be nonzero, tick hooks on CPU1 didn’t run, even though CPU1 scheduler was working. This change removes the check for uxPendedTicks in CPU1 code path, so that the tick hooks on CPU1 always get called (as for the CPU0 code path).