xtensa/esp32: Use up_cpu_index instead of this_cpu.

this_cpu requires sched.h to be included.
This commit is contained in:
Abdelatif Guettouche 2021-08-05 23:05:09 +02:00 committed by Gustavo Henrique Nihei
parent 5d626f7267
commit 2925d4956b
1 changed files with 1 additions and 1 deletions

View File

@ -492,7 +492,7 @@ void esp32_free_cpuint(int cpuint)
flags = enter_critical_section(); flags = enter_critical_section();
#ifdef CONFIG_SMP #ifdef CONFIG_SMP
if (this_cpu() != 0) if (up_cpu_index() != 0)
{ {
freeints = &g_cpu1_freeints; freeints = &g_cpu1_freeints;
} }