Lines Matching refs:num_threads
40 static void dummy_threads_init(unsigned int num_threads) in dummy_threads_init() argument
45 bucket_size = (num_threads / CONFIG_NUM_PREEMPT_PRIORITIES) + 1; in dummy_threads_init()
47 for (i = 0; i < num_threads; i++) { in dummy_threads_init()
53 static void cycles_reset(unsigned int num_threads) in cycles_reset() argument
57 for (i = 0; i < num_threads; i++) { in cycles_reset()
68 static void test_decreasing_priority(_wait_q_t *q, unsigned int num_threads) in test_decreasing_priority() argument
76 for (i = 0; i < num_threads; i++) { in test_decreasing_priority()
87 for (i = 0; i < num_threads; i++) { in test_decreasing_priority()
96 static void test_increasing_priority(_wait_q_t *q, unsigned int num_threads) in test_increasing_priority() argument
105 for (i = 0; i < num_threads; i++) { in test_increasing_priority()
108 &dummy_thread[num_threads - i - 1]; in test_increasing_priority()
117 for (i = 0; i < num_threads; i++) { in test_increasing_priority()
120 &dummy_thread[num_threads - i - 1]; in test_increasing_priority()
141 static void compute_and_report_stats(unsigned int num_threads, unsigned int num_iterations, in compute_and_report_stats() argument
153 for (i = 1; i < num_threads; i++) { in compute_and_report_stats()
167 average = total / (num_threads * num_iterations); in compute_and_report_stats()
171 for (i = 0; i < num_threads; i++) { in compute_and_report_stats()
177 std_dev /= num_threads; in compute_and_report_stats()