Searched refs:idle_threads (Results 1 - 2 of 2) sorted by relevance

/linux-master/kernel/
H A Dsmpboot.c28 static DEFINE_PER_CPU(struct task_struct *, idle_threads);
32 struct task_struct *tsk = per_cpu(idle_threads, cpu);
41 per_cpu(idle_threads, smp_processor_id()) = current;
52 struct task_struct *tsk = per_cpu(idle_threads, cpu);
59 per_cpu(idle_threads, cpu) = tsk;
/linux-master/tools/perf/
H A Dbuiltin-sched.c275 static struct thread **idle_threads; variable in typeref:struct:thread
2233 idle_threads = zalloc(ncpu * sizeof(struct thread *));
2234 if (!idle_threads)
2241 idle_threads[i] = thread__new(0, 0);
2242 if (idle_threads[i] == NULL)
2245 ret = init_idle_thread(idle_threads[i]);
2257 if (idle_threads == NULL)
2261 if ((idle_threads[i]))
2262 thread__delete(idle_threads[i]);
2265 free(idle_threads);
[all...]

Completed in 176 milliseconds