Lines Matching full:priority

109 static void alt_thread_create(int priority, const char *desc)  in alt_thread_create()  argument
113 priority, 0, K_NO_WAIT); in alt_thread_create()
120 "%s priority thread has not pended.\n", desc); in alt_thread_create()
123 uint32_t busy_threads_create(int priority) in busy_threads_create() argument
134 priority, 0, K_NO_WAIT); in busy_threads_create()
156 void busy_threads_priority_set(int priority, int delta) in busy_threads_priority_set() argument
161 k_thread_priority_set(&thread[i], priority); in busy_threads_priority_set()
162 priority += delta; in busy_threads_priority_set()
173 int priority; in ZTEST() local
176 priority = k_thread_priority_get(k_current_get()); in ZTEST()
178 id = busy_threads_create(priority - 1); in ZTEST()
208 int priority; in ZTEST() local
211 priority = k_thread_priority_get(k_current_get()); in ZTEST()
213 id = busy_threads_create(priority - 1); in ZTEST()
245 * Verify that waking a thread whose priority is lower than any other
252 int priority; in ZTEST() local
255 priority = k_thread_priority_get(k_current_get()); in ZTEST()
260 id = busy_threads_create(priority - 1); in ZTEST()
263 * Lower the priority of the busy threads now that we know that they in ZTEST()
272 * Low priority thread is pended. Current thread is cooperative. in ZTEST()
273 * Other CPUs are executing preemptible threads @ priority 0. in ZTEST()
282 "Low priority thread is not ready.\n"); in ZTEST()
293 * Verify that waking a thread whose priority is higher than all currently
300 int priority; in ZTEST() local
303 priority = k_thread_priority_get(k_current_get()); in ZTEST()
306 alt_thread_create(priority - 1 - NUM_THREADS, "High"); in ZTEST()
308 id = busy_threads_create(priority - 1); in ZTEST()
311 * Lower the priority of the busy threads now that we know that they in ZTEST()
321 * High priority thread is pended. Current thread is cooperative. in ZTEST()
331 "High priority thread is not ready.\n"); in ZTEST()
347 * Verify that lowering the priority of an active thread results in an IPI.
356 int priority; in ZTEST() local
359 priority = k_thread_priority_get(k_current_get()); in ZTEST()
361 id = busy_threads_create(priority - 1); in ZTEST()
364 k_thread_priority_set(&thread[0], priority); in ZTEST()
408 int priority; in ZTEST() local
411 priority = k_thread_priority_get(k_current_get()); in ZTEST()
414 alt_thread_create(priority - 1 - NUM_THREADS, "High"); in ZTEST()
416 id = busy_threads_create(priority - 1); in ZTEST()
419 * High priority thread is pended. Current thread is cooperative. in ZTEST()
420 * Other CPUs are executing lower priority cooperative threads. in ZTEST()
429 "High priority thread is not ready.\n"); in ZTEST()