Home
last modified time | relevance | path

Searched refs:old_thread (Results 1 – 6 of 6) sorted by relevance

/Zephyr-latest/kernel/include/
Dkswap.h81 struct k_thread *new_thread, *old_thread; in do_swap() local
104 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()
/Zephyr-latest/arch/xtensa/include/
Dkernel_arch_func.h42 static ALWAYS_INLINE void arch_cohere_stacks(struct k_thread *old_thread, in arch_cohere_stacks() argument
48 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()
/Zephyr-latest/arch/sparc/core/
Dthread.c62 void *z_arch_get_next_switch_handle(struct k_thread **old_thread) in z_arch_get_next_switch_handle() argument
64 *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()
/Zephyr-latest/arch/arc/core/
Dthread.c211 void *z_arch_get_next_switch_handle(struct k_thread **old_thread) in z_arch_get_next_switch_handle() argument
213 *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() argument
220 ARG_UNUSED(old_thread); in z_arch_get_next_switch_handle()
/Zephyr-latest/kernel/
Dsched.c851 struct k_thread *old_thread = _current, *new_thread; in z_get_next_switch_handle() local
854 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()
/Zephyr-latest/include/zephyr/arch/
Darch_interface.h936 static inline void arch_cohere_stacks(struct k_thread *old_thread, in arch_cohere_stacks() argument
940 ARG_UNUSED(old_thread); in arch_cohere_stacks()