Lines Matching refs:priority

188 static bool cont_check(struct ztress_context_data *context_data, uint32_t priority)  in cont_check()  argument
190 if (context_data->preempt_cnt != 0 && preempt_cnt[priority] >= context_data->preempt_cnt) { in cont_check()
195 if (context_data->exec_cnt != 0 && exec_cnt[priority] >= context_data->exec_cnt) { in cont_check()
229 uint32_t priority = 0; in ztress_timeout() local
233 cont_test = cont_check(context_data, priority); in ztress_timeout()
235 exec_cnt[priority], in ztress_timeout()
237 priority); in ztress_timeout()
238 exec_cnt[priority]++; in ztress_timeout()
241 k_timer_start(timer, randomize_t(backoff[priority]), K_NO_WAIT); in ztress_timeout()
256 uint32_t priority = (uint32_t)(uintptr_t)prio; in ztress_thread() local
260 uint32_t cnt = exec_cnt[priority]; in ztress_thread()
263 exec_cnt[priority] = cnt + 1; in ztress_thread()
264 cont_test = cont_check(context_data, priority); in ztress_thread()
266 atomic_or(&active_mask, BIT(priority)); in ztress_thread()
267 cont = context_data->handler(context_data->user_data, cnt, !cont_test, priority); in ztress_thread()
268 atomic_and(&active_mask, ~BIT(priority)); in ztress_thread()
270 sleep(backoff[priority]); in ztress_thread()
326 int priority, ztress_prio = 0; in ztress_execute() local
347 priority = K_LOWEST_APPLICATION_THREAD_PRIO - cnt - 1; in ztress_execute()
349 k_thread_priority_set(k_current_get(), priority); in ztress_execute()
350 priority++; in ztress_execute()
369 priority, 0, K_MSEC(10)); in ztress_execute()
371 priority++; in ztress_execute()