修正多核rt_schedule_remove_thread时pcpu的ready_table判断问题
This commit is contained in:
parent
4f674ef149
commit
731e64f0c5
@ -784,7 +784,7 @@ void rt_schedule_remove_thread(struct rt_thread *thread)
|
|||||||
{
|
{
|
||||||
#if RT_THREAD_PRIORITY_MAX > 32
|
#if RT_THREAD_PRIORITY_MAX > 32
|
||||||
pcpu->ready_table[thread->number] &= ~thread->high_mask;
|
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;
|
pcpu->priority_group &= ~thread->number_mask;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user