Searched refs:old_thread (Results 1 – 2 of 2) sorted by relevance
81 struct k_thread *new_thread, *old_thread; in do_swap() local104 old_thread = _current; in do_swap()108 old_thread->swap_retval = -EAGAIN; in do_swap()123 if (new_thread != old_thread) { in do_swap()145 arch_cohere_stacks(old_thread, NULL, new_thread); in do_swap()152 z_requeue_current(old_thread); in do_swap()165 arch_switch(newsh, &old_thread->switch_handle); in do_swap()
871 struct k_thread *old_thread = _current, *new_thread; in z_get_next_switch_handle() local874 old_thread->switch_handle = NULL; in z_get_next_switch_handle()880 if (old_thread != new_thread) { in z_get_next_switch_handle()885 arch_cohere_stacks(old_thread, interrupted, new_thread); in z_get_next_switch_handle()911 if (z_is_thread_queued(old_thread)) { in z_get_next_switch_handle()914 (old_thread->base.cpu_mask != BIT(cpu_id))) { in z_get_next_switch_handle()915 flag_ipi(ipi_mask_create(old_thread)); in z_get_next_switch_handle()918 runq_add(old_thread); in z_get_next_switch_handle()921 old_thread->switch_handle = interrupted; in z_get_next_switch_handle()
Completed in 8 milliseconds