]> begriffs open source - freertos/commit
Optimize xTaskIncrementTick for configNUMBER_OF_CORES > 1 (#1118)
authorChen YM <cymb103u@cs.ccu.edu.tw>
Mon, 19 Aug 2024 05:04:33 +0000 (13:04 +0800)
committerGitHub <noreply@github.com>
Mon, 19 Aug 2024 05:04:33 +0000 (10:34 +0530)
commit294569e495515e238dc890a8b4613d01260d1f06
treebc7a5633cf064ce1afc66dada43e59e18bd64c0f
parenta936c10e2c2eab24e625ce6b8d27b6d88c22808a
Optimize xTaskIncrementTick for configNUMBER_OF_CORES > 1 (#1118)

The original implementation only initializes the first
variable. After executing xTaskIncrementTick, the schedule
might not behave as expected.

When configUSE_PREEMPTION == 1 & configUSE_TIME_SLICING == 1,
replace setting xYieldRequiredForCore[ xCoreID ] with setting
xYieldPendings[ xCoreID ].

And when configUSE_PREEMPTION == 1, simplify the check
condition to only check xYieldPendings[ xCoreID ].

Signed-off-by: cymzier <cymb103u@cs.ccu.edu.tw>
Co-authored-by: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com>
tasks.c