Lines Matching +full:wakeup +full:- +full:source +full:- +full:id
4 * SPDX-License-Identifier: Apache-2.0
18 * The wakeup test is repeated for all four combinations of threads
24 #error Preemption test requires single-CPU operation
73 /* Command to worker: use irq_offload() to indirect the wakeup? */
76 /* Command to worker: sleep after wakeup? */
79 /* Command to worker: yield after wakeup? */
84 void wakeup_src_thread(int id) in wakeup_src_thread() argument
86 volatile k_tid_t src_thread = &worker_threads[id]; in wakeup_src_thread()
101 /* A little bit of white-box inspection: check that all the in wakeup_src_thread()
116 k_sem_give(&worker_sems[id]); in wakeup_src_thread()
118 while (do_sleep && !(src_thread->base.thread_state & _THREAD_PENDING)) { in wakeup_src_thread()
212 * target) must never run before the source in validate_wakeup()
232 int id = POINTER_TO_INT(p1); in worker() local
233 k_tid_t curr = &worker_threads[id], prev; in worker()
238 zassert_true(id >= 0 && id < NUM_THREADS, ""); in worker()
245 k_sem_take(&worker_sems[id], K_FOREVER); in worker()
249 /* If we're the wakeup target, setting last_wakeup_thread is in worker()
252 if (id == wakeup_target) { in worker()
289 zassert_true(k_uptime_get() - start > 0, in worker()
294 validate_wakeup(id, wakeup_target, prev); in worker()
318 priority = K_LOWEST_APPLICATION_THREAD_PRIO - 1; in ZTEST()