mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-15 11:08:09 +08:00
[kernel] fixup of data racing accessing percpu objects (#8475)
Signed-off-by: Shell <smokewood@qq.com>
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user