Lines Matching refs:idle_threads
291 static struct thread **idle_threads; variable
2226 idle_threads = zalloc(ncpu * sizeof(struct thread *)); in init_idle_threads()
2227 if (!idle_threads) in init_idle_threads()
2234 idle_threads[i] = thread__new(0, 0); in init_idle_threads()
2235 if (idle_threads[i] == NULL) in init_idle_threads()
2238 ret = init_idle_thread(idle_threads[i]); in init_idle_threads()
2250 if (idle_threads == NULL) in free_idle_threads()
2254 if ((idle_threads[i])) in free_idle_threads()
2255 thread__delete(idle_threads[i]); in free_idle_threads()
2258 free(idle_threads); in free_idle_threads()
2267 if ((cpu >= idle_max_cpu) || (idle_threads == NULL)) { in get_idle_thread()
2271 p = realloc(idle_threads, j * sizeof(struct thread *)); in get_idle_thread()
2275 idle_threads = (struct thread **) p; in get_idle_thread()
2277 idle_threads[i] = NULL; in get_idle_thread()
2283 if (idle_threads[cpu] == NULL) { in get_idle_thread()
2284 idle_threads[cpu] = thread__new(0, 0); in get_idle_thread()
2286 if (idle_threads[cpu]) { in get_idle_thread()
2287 if (init_idle_thread(idle_threads[cpu]) < 0) in get_idle_thread()
2292 return idle_threads[cpu]; in get_idle_thread()
2872 t = idle_threads[i]; in timehist_print_summary()
2896 t = idle_threads[i]; in timehist_print_summary()