Lines Matching defs:pd
6902 * compute_energy(): Estimates the energy that @pd would consume if @p was
6904 * landscape of @pd's CPUs after the task migration, and uses the Energy Model
6908 static long compute_energy(struct task_struct *p, int dst_cpu, struct perf_domain *pd)
6910 struct cpumask *pd_mask = perf_domain_span(pd);
6917 * of another rd if they belong to the same pd. So, account for the
6918 * utilization of these CPUs too by masking pd with cpu_online_mask
6921 * If an entire pd is outside of the current rd, it will not appear in
6922 * its pd list and will not be accounted by compute_energy().
6948 return em_cpu_energy(pd->em_pd, max_util, sum_util);
6997 struct perf_domain *pd;
7000 pd = rcu_dereference(rd->pd);
7001 if (!pd || READ_ONCE(rd->overutilized)) {
7022 for (; pd; pd = pd->next) {
7027 /* Compute the 'base' energy of the pd, without @p */
7028 base_energy_pd = compute_energy(p, -1, pd);
7031 for_each_cpu_and(cpu, perf_domain_span(pd), sched_domain_span(sd))
7056 prev_delta = compute_energy(p, prev_cpu, pd);
7073 cur_delta = compute_energy(p, max_spare_cap_cpu, pd);
9791 if (rcu_dereference(rd->pd) && !READ_ONCE(rd->overutilized)) {