nuttx/sched/task
hujun5 f7843e2198 sched:remove g_cpu_schedlock g_cpu_irqsetlock g_cpu_locksetlock
we can use g_cpu_lockset to determine whether we are currently in the scheduling lock,
and all accesses and modifications to g_cpu_lockset, g_cpu_irqlock, g_cpu_irqset
are in the critical section, so we can directly operate on it.

test:
We can use qemu for testing.

compiling
make distclean -j20; ./tools/configure.sh -l qemu-armv8a:nsh_smp ;make -j20
running
qemu-system-aarch64 -cpu cortex-a53 -smp 4 -nographic -machine virt,virtualization=on,gic-version=3 -net none -chardev stdio,id=con,mux=on -serial chardev:con -mon chardev=con,mode=readline -kernel ./nuttx

Signed-off-by: hujun5 <hujun5@xiaomi.com>
2024-06-21 11:11:07 +09:00
..
CMakeLists.txt sched/pthread/join: refactor pthread join to support join task 2024-03-13 18:06:56 +09:00
exit.c
Make.defs sched/pthread/join: refactor pthread join to support join task 2024-03-13 18:06:56 +09:00
spawn.h
task_activate.c sched/logging: add task activation/exit logs 2024-01-14 23:04:42 -08:00
task_cancelpt.c task/pthread_cancelpt: Fix task_delete from another task group 2023-11-22 08:05:58 -08:00
task_create.c sched/tcb: add free tcb flag to support static tcb 2024-03-04 20:05:11 +08:00
task_delete.c
task_execve.c
task_exit.c sched:remove g_cpu_schedlock g_cpu_irqsetlock g_cpu_locksetlock 2024-06-21 11:11:07 +09:00
task_exithook.c sched/group: change type of task group member to single queue 2024-03-07 12:39:29 +08:00
task_fork.c sched/tasklist: replace task status list with macro definition 2024-03-21 11:23:46 +09:00
task_getgroup.c sched/group: replace group_findbypid to task_getgroup 2024-03-05 22:24:52 +08:00
task_getpid.c
task_getppid.c
task_gettid.c
task_init.c sched/task: minor polish on task_init() 2024-05-08 15:43:25 +08:00
task_join.c sched/pthread/join: refactor pthread join to support join task 2024-03-13 18:06:56 +09:00
task_posixspawn.c sched/posixspawn: disable tedious logging 2024-05-10 15:40:34 +08:00
task_prctl.c
task_recover.c
task_reparent.c sched/group: replace group_findbypid to task_getgroup 2024-03-05 22:24:52 +08:00
task_restart.c sched/tasklist: replace task status list with macro definition 2024-03-21 11:23:46 +09:00
task_setup.c Revert "sched: replace some global variables to macro" 2024-06-06 22:00:25 +08:00
task_spawn.c sched/tcb: add free tcb flag to support static tcb 2024-03-04 20:05:11 +08:00
task_spawnparms.c sched/taskfiles: skip unnecessary file open/close operations to improve performance 2023-11-16 07:30:36 -08:00
task_start.c sched/task: save argument counter to avoid limit check 2024-03-05 22:25:28 +08:00
task_starthook.c
task_terminate.c
task.h sched/pthread/join: refactor pthread join to support join task 2024-03-13 18:06:56 +09:00