Lines Matching refs:rq
440 void rq_attach_root(struct rq *rq, struct root_domain *rd) in rq_attach_root() argument
445 raw_spin_lock_irqsave(&rq->lock, flags); in rq_attach_root()
447 if (rq->rd) { in rq_attach_root()
448 old_rd = rq->rd; in rq_attach_root()
450 if (cpumask_test_cpu(rq->cpu, old_rd->online)) in rq_attach_root()
451 set_rq_offline(rq); in rq_attach_root()
453 cpumask_clear_cpu(rq->cpu, old_rd->span); in rq_attach_root()
465 rq->rd = rd; in rq_attach_root()
467 cpumask_set_cpu(rq->cpu, rd->span); in rq_attach_root()
468 if (cpumask_test_cpu(rq->cpu, cpu_active_mask)) in rq_attach_root()
469 set_rq_online(rq); in rq_attach_root()
471 raw_spin_unlock_irqrestore(&rq->lock, flags); in rq_attach_root()
666 struct rq *rq = cpu_rq(cpu); in cpu_attach_domain() local
701 rq_attach_root(rq, rd); in cpu_attach_domain()
702 tmp = rq->sd; in cpu_attach_domain()
703 rcu_assign_pointer(rq->sd, sd); in cpu_attach_domain()