Searched refs:old_thread (Results 1 – 6 of 6) 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()
42 static ALWAYS_INLINE void arch_cohere_stacks(struct k_thread *old_thread, in arch_cohere_stacks() argument48 size_t ostack = old_thread->stack_info.start; in arch_cohere_stacks()49 size_t osz = old_thread->stack_info.size; in arch_cohere_stacks()93 old_thread->arch.last_cpu = curr_cpu; in arch_cohere_stacks()98 if (old_thread->base.thread_state & _THREAD_DUMMY) { in arch_cohere_stacks()
62 void *z_arch_get_next_switch_handle(struct k_thread **old_thread) in z_arch_get_next_switch_handle() argument64 *old_thread = _current; in z_arch_get_next_switch_handle()66 return z_get_next_switch_handle(*old_thread); in z_arch_get_next_switch_handle()
211 void *z_arch_get_next_switch_handle(struct k_thread **old_thread) in z_arch_get_next_switch_handle() argument213 *old_thread = _current; in z_arch_get_next_switch_handle()218 void *z_arch_get_next_switch_handle(struct k_thread **old_thread) in z_arch_get_next_switch_handle() argument220 ARG_UNUSED(old_thread); in z_arch_get_next_switch_handle()
851 struct k_thread *old_thread = _current, *new_thread; in z_get_next_switch_handle() local854 old_thread->switch_handle = NULL; in z_get_next_switch_handle()860 if (old_thread != new_thread) { in z_get_next_switch_handle()865 arch_cohere_stacks(old_thread, interrupted, new_thread); in z_get_next_switch_handle()891 if (z_is_thread_queued(old_thread)) { in z_get_next_switch_handle()894 (old_thread->base.cpu_mask != BIT(cpu_id))) { in z_get_next_switch_handle()895 flag_ipi(ipi_mask_create(old_thread)); in z_get_next_switch_handle()898 runq_add(old_thread); in z_get_next_switch_handle()901 old_thread->switch_handle = interrupted; in z_get_next_switch_handle()
936 static inline void arch_cohere_stacks(struct k_thread *old_thread, in arch_cohere_stacks() argument940 ARG_UNUSED(old_thread); in arch_cohere_stacks()