Lines Matching refs:from_thread
283 struct rt_thread *from_thread; in rt_schedule() local
323 from_thread = curr_thread; in rt_schedule()
326 RT_OBJECT_HOOK_CALL(rt_scheduler_hook, (from_thread, to_thread)); in rt_schedule()
330 rt_sched_insert_thread(from_thread); in rt_schedule()
333 if ((RT_SCHED_CTX(from_thread).stat & RT_THREAD_STAT_YIELD_MASK) != 0) in rt_schedule()
335 RT_SCHED_CTX(from_thread).stat &= ~RT_THREAD_STAT_YIELD_MASK; in rt_schedule()
347 RT_NAME_MAX, from_thread->parent.name, from_thread->sp); in rt_schedule()
355 RT_OBJECT_HOOK_CALL(rt_scheduler_switch_hook, (from_thread)); in rt_schedule()
357 rt_hw_context_switch((rt_uintptr_t)&from_thread->sp, in rt_schedule()
388 rt_hw_context_switch_interrupt((rt_uintptr_t)&from_thread->sp, in rt_schedule()
389 (rt_uintptr_t)&to_thread->sp, from_thread, to_thread); in rt_schedule()