未验证 提交 d890d555 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #3886 from jesven/fix_smp_ready_table

修正多核rt_schedule_remove_thread时pcpu的ready_table判断问题
......@@ -784,7 +784,7 @@ void rt_schedule_remove_thread(struct rt_thread *thread)
{
#if RT_THREAD_PRIORITY_MAX > 32
pcpu->ready_table[thread->number] &= ~thread->high_mask;
if (rt_thread_ready_table[thread->number] == 0)
if (pcpu->ready_table[thread->number] == 0)
{
pcpu->priority_group &= ~thread->number_mask;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册