sched: export sched_getcpu API in AMP mode

Some app with same code runs on different cores in AMP mode,
need known physical core id on which the function is called.

Signed-off-by: fangxinyong <fangxinyong@xiaomi.com>
This commit is contained in:
fangxinyong
2024-06-13 08:02:48 +08:00
committed by Xiang Xiao
parent 56495bc9ce
commit 76508d42a9
6 changed files with 9 additions and 15 deletions
+1 -1
View File
@@ -136,7 +136,7 @@
"rmmod","nuttx/module.h","defined(CONFIG_MODULE)","int","FAR void *"
"sched_backtrace","sched.h","defined(CONFIG_SCHED_BACKTRACE)","int","pid_t","FAR void **","int","int"
"sched_getaffinity","sched.h","defined(CONFIG_SMP)","int","pid_t","size_t","FAR cpu_set_t *"
"sched_getcpu","sched.h","defined(CONFIG_SMP)","int"
"sched_getcpu","sched.h","","int"
"sched_getparam","sched.h","","int","pid_t","FAR struct sched_param *"
"sched_getscheduler","sched.h","","int","pid_t"
"sched_lock","sched.h","","int"
1 _assert assert.h void FAR const char * int FAR const char * FAR void *
136 rmmod nuttx/module.h defined(CONFIG_MODULE) int FAR void *
137 sched_backtrace sched.h defined(CONFIG_SCHED_BACKTRACE) int pid_t FAR void ** int int
138 sched_getaffinity sched.h defined(CONFIG_SMP) int pid_t size_t FAR cpu_set_t *
139 sched_getcpu sched.h defined(CONFIG_SMP) int
140 sched_getparam sched.h int pid_t FAR struct sched_param *
141 sched_getscheduler sched.h int pid_t
142 sched_lock sched.h int