diff --git a/arch/arm/src/goldfish/goldfish_boot.c b/arch/arm/src/goldfish/goldfish_boot.c index 1d2aa81cccd..0380727d864 100644 --- a/arch/arm/src/goldfish/goldfish_boot.c +++ b/arch/arm/src/goldfish/goldfish_boot.c @@ -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); diff --git a/arch/arm/src/qemu/qemu_boot.c b/arch/arm/src/qemu/qemu_boot.c index 82f4a8e9305..78f821bfb75 100644 --- a/arch/arm/src/qemu/qemu_boot.c +++ b/arch/arm/src/qemu/qemu_boot.c @@ -36,6 +36,11 @@ # include #endif +#ifdef CONFIG_SCHED_INSTRUMENTATION +# include +# include +#endif + #include /**************************************************************************** @@ -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);