Searched refs:idle_threads (Results 1 – 2 of 2) sorted by relevance
26 static DEFINE_PER_CPU(struct task_struct *, idle_threads);30 struct task_struct *tsk = per_cpu(idle_threads, cpu); in idle_thread_get()39 per_cpu(idle_threads, smp_processor_id()) = current; in idle_thread_set_boot_cpu()50 struct task_struct *tsk = per_cpu(idle_threads, cpu); in idle_init()57 per_cpu(idle_threads, cpu) = tsk; in idle_init()
287 static struct thread **idle_threads; variable2401 idle_threads = zalloc(ncpu * sizeof(struct thread *)); in init_idle_threads()2402 if (!idle_threads) in init_idle_threads()2409 idle_threads[i] = thread__new(0, 0); in init_idle_threads()2410 if (idle_threads[i] == NULL) in init_idle_threads()2413 ret = init_idle_thread(idle_threads[i]); in init_idle_threads()2425 if (idle_threads == NULL) in free_idle_threads()2429 struct thread *idle = idle_threads[i]; in free_idle_threads()2442 free(idle_threads); in free_idle_threads()2451 if ((cpu >= idle_max_cpu) || (idle_threads == NULL)) { in get_idle_thread()[all …]