Lines Matching refs:idle
598 if (set_nr_and_not_polling(rq->idle)) in wake_up_idle_cpu()
2358 if (!set_nr_if_polling(rq->idle)) in ttwu_queue_remote()
2375 if (set_nr_if_polling(rq->idle)) { in wake_up_if_idle()
4421 if (unlikely(p == rq->idle)) { in rt_mutex_setprio()
4622 if (rq->curr != rq->idle) in idle_cpu()
4661 return cpu_rq(cpu)->idle; in idle_task()
6018 void init_idle(struct task_struct *idle, int cpu) in init_idle() argument
6023 __sched_fork(0, idle); in init_idle()
6025 raw_spin_lock_irqsave(&idle->pi_lock, flags); in init_idle()
6028 idle->state = TASK_RUNNING; in init_idle()
6029 idle->se.exec_start = sched_clock(); in init_idle()
6030 idle->flags |= PF_IDLE; in init_idle()
6032 scs_task_reset(idle); in init_idle()
6033 kasan_unpoison_task_stack(idle); in init_idle()
6042 set_cpus_allowed_common(idle, cpumask_of(cpu)); in init_idle()
6055 __set_task_cpu(idle, cpu); in init_idle()
6058 rq->idle = idle; in init_idle()
6059 rcu_assign_pointer(rq->curr, idle); in init_idle()
6060 idle->on_rq = TASK_ON_RQ_QUEUED; in init_idle()
6062 idle->on_cpu = 1; in init_idle()
6065 raw_spin_unlock_irqrestore(&idle->pi_lock, flags); in init_idle()
6068 init_idle_preempt_count(idle, cpu); in init_idle()
6073 idle->sched_class = &idle_sched_class; in init_idle()
6074 ftrace_graph_init_idle_task(idle, cpu); in init_idle()
6075 vtime_init_idle(idle, cpu); in init_idle()
6077 sprintf(idle->comm, "%s/%d", INIT_TASK_COMM, cpu); in init_idle()