Lines Matching refs:idle_threads
280 static struct thread **idle_threads; variable
2205 idle_threads = zalloc(ncpu * sizeof(struct thread *)); in init_idle_threads()
2206 if (!idle_threads) in init_idle_threads()
2213 idle_threads[i] = thread__new(0, 0); in init_idle_threads()
2214 if (idle_threads[i] == NULL) in init_idle_threads()
2217 ret = init_idle_thread(idle_threads[i]); in init_idle_threads()
2229 if (idle_threads == NULL) in free_idle_threads()
2233 if ((idle_threads[i])) in free_idle_threads()
2234 thread__delete(idle_threads[i]); in free_idle_threads()
2237 free(idle_threads); in free_idle_threads()
2246 if ((cpu >= idle_max_cpu) || (idle_threads == NULL)) { in get_idle_thread()
2250 p = realloc(idle_threads, j * sizeof(struct thread *)); in get_idle_thread()
2254 idle_threads = (struct thread **) p; in get_idle_thread()
2256 idle_threads[i] = NULL; in get_idle_thread()
2262 if (idle_threads[cpu] == NULL) { in get_idle_thread()
2263 idle_threads[cpu] = thread__new(0, 0); in get_idle_thread()
2265 if (idle_threads[cpu]) { in get_idle_thread()
2266 if (init_idle_thread(idle_threads[cpu]) < 0) in get_idle_thread()
2271 return idle_threads[cpu]; in get_idle_thread()
2839 t = idle_threads[i]; in timehist_print_summary()
2863 t = idle_threads[i]; in timehist_print_summary()