nuttx-update/sched
hujun5 76d2a9443b 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 <hujun5@xiaomi.com>
2024-11-04 17:19:59 +08:00
..
addrenv sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
clock cmake:refine nuttx cmake build system fix CMake build missing part 2024-10-13 02:25:06 +08:00
environ sched/environ: There is no need to use sched_[un]lock 2024-10-11 02:43:11 +08:00
event sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
group Revert "sched/group/setuptask_file: duplicate idle task fd for kernel thread" 2024-10-11 16:53:19 +08:00
init sched: add up_this_task and up_change_task macro stub 2024-10-15 15:25:55 +08:00
instrument sched/instrument: rename stack_record.c to stack_monitor.c 2024-10-13 02:10:41 +08:00
irq Revert "sched/spinlock: remove nesting spinlock support" 2024-10-14 17:42:16 +08:00
misc sched/misc/assert.c: don't compile dump_task logic if CONFIG_DEBUG_ALERT=n 2024-11-03 19:35:36 +08:00
module modlib:Standardized module loading method 2024-10-05 15:22:02 +08:00
mqueue mq: change mqueue msg mail to dynamic array 2024-10-07 20:20:13 +08:00
paging sched: add nxsched_remove_self 2024-09-24 22:07:00 +08:00
pthread pthread_cond remove csection 2024-11-02 09:40:19 -03:00
sched sched/sched: change [FIRST|LAST]_ASSIGNED_STATE to [FIRST|LAST]_READY_TO_RUN_STATE in nxsched_set_affinity 2024-11-04 17:19:59 +08:00
semaphore nuttx/semaphore: Move define CONFIG_SEM_PREALLOCHOLDERS to include/semaphore.h. 2024-10-31 18:37:53 +08:00
signal userspace: Exclude nuttx/arch.h 2024-11-01 16:59:37 +08:00
task task_exit.c: Add missing sched_note_stop() 2024-10-23 12:08:18 -03:00
timer timer_create:Checks whether the signo provided by the user is valid 2024-10-31 17:16:12 +08:00
tls sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
wdog sched/wdog: Fix code style 2024-10-10 13:57:46 +08:00
wqueue userspace: Exclude nuttx/arch.h 2024-11-01 16:59:37 +08:00
CMakeLists.txt sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
Kconfig gcov: Fix typographical errors 2024-10-30 14:45:23 +08:00
Makefile Revert "build depend:Revert Make.dep intermediate ddc file" 2024-09-15 19:29:47 +08:00