mirror of
https://github.com/apache/nuttx.git
synced 2026-09-02 15:12:59 +00:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue