incubator-nuttx/sched
chao an feb6ede434 sched/cpu: replace up_cpu_index() to this_cpu()
In SMP mode, up_cpu_index()/this_cpu() are the same, both return the index of the physical core.
In AMP mode, up_cpu_index() will return the index of the physical core, and this_cpu() will always return 0

| #ifdef CONFIG_SMP
| #  define this_cpu()             up_cpu_index()
| #elif defined(CONFIG_AMP)
| #  define this_cpu()             (0)
| #else
| #  define this_cpu()             (0)
| #endif

Signed-off-by: chao an <anchao@lixiang.com>
2024-03-21 18:52:35 +08:00
..
addrenv cmake:complete missing changes during cmake reforming for sched 2023-09-08 21:20:16 +03:00
clock sched/group: change type of task group member to single queue 2024-03-07 12:39:29 +08:00
environ sched/environ: check envcp validity before hold sched_lock() 2024-03-05 22:24:14 +08:00
group sched/group/group_killchildren.c: Force-cancel children if parent is force-cancelled 2024-03-20 18:03:15 -03:00
init sched: replace some global variables to macro 2024-03-21 18:51:25 +08:00
instrument sched/procfs:use instrument to statistics run time max stack 2023-12-11 02:06:51 -08:00
irq sched/cpu: replace up_cpu_index() to this_cpu() 2024-03-21 18:52:35 +08:00
misc sched/cpu: replace up_cpu_index() to this_cpu() 2024-03-21 18:52:35 +08:00
module fs: procfs add poll support 2023-12-26 19:23:13 -08:00
mqueue mm/alloc: remove all unnecessary cast for alloc 2023-08-30 14:34:20 +08:00
paging sched/tasklist: replace task status list with macro definition 2024-03-21 11:23:46 +09:00
pthread sched/tasklist: replace task status list with macro definition 2024-03-21 11:23:46 +09:00
sched sched/cpu: replace up_cpu_index() to this_cpu() 2024-03-21 18:52:35 +08:00
semaphore shced:sem: replace mutex with spinlock 2024-03-19 18:06:12 +08:00
signal sched/tasklist: replace task status list with macro definition 2024-03-21 11:23:46 +09:00
task sched: replace some global variables to macro 2024-03-21 18:51:25 +08:00
timer Replace enter_critical_section with spin_irqsave 2023-10-21 11:00:07 +08:00
tls stdio/file: unify group file list to common single queue 2024-03-18 19:32:49 +08:00
wdog clock: replace all up_perf_xx with perf_xx 2023-10-02 16:11:43 +02:00
wqueue sched/wqueue: replace some global variables to macro 2024-03-21 11:22:41 +09:00
CMakeLists.txt build: add initial cmake build system 2023-07-08 13:50:48 +08:00
Kconfig sched: move etc romfs mount from nsh to sched/init 2024-01-09 21:29:46 -03:00
Makefile sched/procfs:use instrument to statistics run time max stack 2023-12-11 02:06:51 -08:00