[kernel] fixup of data racing accessing percpu objects (#8475)

Signed-off-by: Shell <smokewood@qq.com>
This commit is contained in:
Shell
2024-01-09 23:09:49 +08:00
committed by GitHub
parent acaa23052f
commit cc157baf23
7 changed files with 44 additions and 9 deletions
+2
View File
@@ -658,6 +658,8 @@ void rt_timer_check(void)
rt_base_t level;
rt_list_t list;
RT_ASSERT(rt_interrupt_get_nest() > 0);
#ifdef RT_USING_SMP
if (rt_hw_cpu_id() != 0)
{