Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sched/sched: change [FIRST|LAST]_ASSIGNED_STATE to [FIRST|LAST]_READY…
…_TO_RUN_STATE in nxsched_set_affinity reason: In smp, It's possible that in a scenario where CONFIG_SMP_DEFAULT_CPUSET is set to 1, when taskA is created with a relatively low priority, it gets added to the g_readytorun queue with an affinity of 0x1. Meanwhile, CPUs 1~n are in an idle state. Subsequently, when we attempt to change the affinity property of taskA using nxsched_set_affinity, the scheduling mechanism might not be triggered due to the lack of a proper condition check. This can result in taskA remaining unscheduled and therefore unable to run. Signed-off-by: hujun5 <[email protected]>
- Loading branch information