Commit 294569e
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>1 parent a936c10 commit 294569e
1 file changed
+2
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4698 | 4698 | | |
4699 | 4699 | | |
4700 | 4700 | | |
4701 | | - | |
4702 | | - | |
4703 | | - | |
4704 | | - | |
4705 | 4701 | | |
4706 | 4702 | | |
4707 | 4703 | | |
| |||
4853 | 4849 | | |
4854 | 4850 | | |
4855 | 4851 | | |
4856 | | - | |
| 4852 | + | |
4857 | 4853 | | |
4858 | 4854 | | |
4859 | 4855 | | |
| |||
4905 | 4901 | | |
4906 | 4902 | | |
4907 | 4903 | | |
4908 | | - | |
| 4904 | + | |
4909 | 4905 | | |
4910 | 4906 | | |
4911 | 4907 | | |
| |||
0 commit comments