mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
sched/walt: Remove dependency on sd_asym_cpucapacity for task placement
We have a separate implementation of find_energy_efficient_cpu() for WALT. The task placement rely on CPU arrays and WALT load signals. Hence remove sd_asym_cpucapacity checks and updates to PELT signals from find_energy_efficient_cpu(). Change-Id: I20a186e7a10d1ab6ee5f502f5dbf2de14d7971d5 Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
This commit is contained in:
parent
0a4836e3cf
commit
e635aa2602
1 changed files with 0 additions and 15 deletions
|
|
@ -6926,7 +6926,6 @@ int find_energy_efficient_cpu(struct task_struct *p, int prev_cpu,
|
|||
unsigned long prev_delta = ULONG_MAX, best_delta = ULONG_MAX;
|
||||
struct root_domain *rd = cpu_rq(smp_processor_id())->rd;
|
||||
int weight, cpu = smp_processor_id(), best_energy_cpu = prev_cpu;
|
||||
struct sched_domain *sd;
|
||||
struct perf_domain *pd;
|
||||
unsigned long cur_energy;
|
||||
cpumask_t *candidates;
|
||||
|
|
@ -6981,20 +6980,6 @@ int find_energy_efficient_cpu(struct task_struct *p, int prev_cpu,
|
|||
if (!pd)
|
||||
goto fail;
|
||||
|
||||
/*
|
||||
* Energy-aware wake-up happens on the lowest sched_domain starting
|
||||
* from sd_asym_cpucapacity spanning over this_cpu and prev_cpu.
|
||||
*/
|
||||
sd = rcu_dereference(*this_cpu_ptr(&sd_asym_cpucapacity));
|
||||
while (sd && !cpumask_test_cpu(prev_cpu, sched_domain_span(sd)))
|
||||
sd = sd->parent;
|
||||
if (!sd)
|
||||
goto fail;
|
||||
|
||||
sync_entity_load_avg(&p->se);
|
||||
if (!task_util_est(p))
|
||||
goto unlock;
|
||||
|
||||
fbt_env.is_rtg = is_rtg;
|
||||
fbt_env.start_cpu = start_cpu;
|
||||
fbt_env.order_index = order_index;
|
||||
|
|
|
|||
Loading…
Reference in a new issue