Lines Matching refs:num_threads
68 static void start_threads(unsigned int num_threads) in start_threads() argument
81 bucket_size = (num_threads / CONFIG_NUM_PREEMPT_PRIORITIES) + 1; in start_threads()
90 static void cycles_reset(unsigned int num_threads) in cycles_reset() argument
94 for (i = 0; i < num_threads; i++) { in cycles_reset()
100 static void test_decreasing_priority(unsigned int num_threads) in test_decreasing_priority() argument
106 for (i = num_threads; i > 0; i--) { in test_decreasing_priority()
113 for (i = 0; i < num_threads; i++) { in test_decreasing_priority()
121 static void test_increasing_priority(unsigned int num_threads) in test_increasing_priority() argument
127 for (i = num_threads; i > 0; i--) { in test_increasing_priority()
129 z_unready_thread(&test_thread[num_threads - i]); in test_increasing_priority()
134 for (i = num_threads; i > 0; i--) { in test_increasing_priority()
138 add_cycles[num_threads - i] += timing_cycles_get(&start, &finish); in test_increasing_priority()
154 static void compute_and_report_stats(unsigned int num_threads, unsigned int num_iterations, in compute_and_report_stats() argument
166 for (i = 1; i < num_threads; i++) { in compute_and_report_stats()
180 average = total / (num_threads * num_iterations); in compute_and_report_stats()
182 for (i = 0; i < num_threads; i++) { in compute_and_report_stats()
188 std_dev /= num_threads; in compute_and_report_stats()