|
@@ -350,9 +350,9 @@ void rt_schedule(void)
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- current_thread->stat &= ~RT_THREAD_STAT_YIELD_MASK;
|
|
|
rt_schedule_insert_thread(current_thread);
|
|
|
}
|
|
|
+ current_thread->stat &= ~RT_THREAD_STAT_YIELD_MASK;
|
|
|
}
|
|
|
to_thread->oncpu = cpu_id;
|
|
|
if (to_thread != current_thread)
|
|
@@ -448,9 +448,9 @@ void rt_schedule(void)
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- rt_current_thread->stat &= ~RT_THREAD_STAT_YIELD_MASK;
|
|
|
need_insert_from_thread = 1;
|
|
|
}
|
|
|
+ rt_current_thread->stat &= ~RT_THREAD_STAT_YIELD_MASK;
|
|
|
}
|
|
|
|
|
|
if (to_thread != rt_current_thread)
|
|
@@ -599,9 +599,9 @@ void rt_scheduler_do_irq_switch(void *context)
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- current_thread->stat &= ~RT_THREAD_STAT_YIELD_MASK;
|
|
|
rt_schedule_insert_thread(current_thread);
|
|
|
}
|
|
|
+ current_thread->stat &= ~RT_THREAD_STAT_YIELD_MASK;
|
|
|
}
|
|
|
to_thread->oncpu = cpu_id;
|
|
|
if (to_thread != current_thread)
|