Lines Matching refs:c_idle
733 struct create_idle *c_idle; in smp_fork_idle() local
735 c_idle = container_of(work, struct create_idle, work); in smp_fork_idle()
736 c_idle->idle = fork_idle(c_idle->cpu); in smp_fork_idle()
737 complete(&c_idle->done); in smp_fork_idle()
743 struct create_idle c_idle; in __cpu_up() local
754 c_idle.done = COMPLETION_INITIALIZER_ONSTACK(c_idle.done); in __cpu_up()
755 INIT_WORK_ONSTACK(&c_idle.work, smp_fork_idle); in __cpu_up()
756 c_idle.cpu = cpu; in __cpu_up()
757 schedule_work(&c_idle.work); in __cpu_up()
758 wait_for_completion(&c_idle.done); in __cpu_up()
759 if (IS_ERR(c_idle.idle)) in __cpu_up()
760 return PTR_ERR(c_idle.idle); in __cpu_up()
761 pcpu->idle = c_idle.idle; in __cpu_up()