xtensa/esp32: Use up_cpu_index instead of this_cpu.
this_cpu requires sched.h to be included.
This commit is contained in:
parent
5d626f7267
commit
2925d4956b
|
@ -492,7 +492,7 @@ void esp32_free_cpuint(int cpuint)
|
|||
flags = enter_critical_section();
|
||||
|
||||
#ifdef CONFIG_SMP
|
||||
if (this_cpu() != 0)
|
||||
if (up_cpu_index() != 0)
|
||||
{
|
||||
freeints = &g_cpu1_freeints;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue