fix some build error

hujun5@hujun5-OptiPlex-7070:~/downloads1/vela_sim/nuttx$ make -j12
chip/qemu_boot.c: In function 'up_cpu_start':
chip/qemu_boot.c:102:3: warning: implicit declaration of function 'sched_note_cpu_start' [-Wimplicit-function-declaration]
  102 |   sched_note_cpu_start(this_task(), cpu);
      |   ^~~~~~~~~~~~~~~~~~~~
chip/qemu_boot.c:102:24: warning: implicit declaration of function 'this_task' [-Wimplicit-function-declaration]
  102 |   sched_note_cpu_start(this_task(), cpu);
      |                        ^~~~~~~~~

Signed-off-by: hujun5 <hujun5@xiaomi.com>
This commit is contained in:
hujun5
2024-11-25 15:20:54 +08:00
committed by archer
parent 8031c9c1de
commit 03f430edf7
2 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -104,7 +104,7 @@ int up_cpu_start(int cpu)
#ifdef CONFIG_SCHED_INSTRUMENTATION
/* Notify of the start event */
sched_note_cpu_start(this_task_inirq(), cpu);
sched_note_cpu_start(this_task(), cpu);
#endif
return psci_cpu_on(cpu, (uintptr_t)__start);
+6 -1
View File
@@ -36,6 +36,11 @@
# include <nuttx/fdt.h>
#endif
#ifdef CONFIG_SCHED_INSTRUMENTATION
# include <sched/sched.h>
# include <nuttx/sched_note.h>
#endif
#include <nuttx/syslog/syslog_rpmsg.h>
/****************************************************************************
@@ -99,7 +104,7 @@ int up_cpu_start(int cpu)
#ifdef CONFIG_SCHED_INSTRUMENTATION
/* Notify of the start event */
sched_note_cpu_start(this_task_inirq(), cpu);
sched_note_cpu_start(this_task(), cpu);
#endif
return psci_cpu_on(cpu, (uintptr_t)__start);