sched/walt: use just 3% energy criteria

Currently we use ~6% (right shift by 4 is really 6.25%) as a
threshold of energy
saving to move a task to a cpu other than the prev_cpu.
Change it to 3%.

Change-Id: I0d0177bbef2c22bcf37e6da42c3ed857f986c478
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
This commit is contained in:
Abhijeet Dharmapurikar 2021-05-06 15:05:34 -07:00 committed by Rishabh Bhatnagar
parent b1361e13a7
commit edad9aa298

View File

@ -776,7 +776,7 @@ int walt_find_energy_efficient_cpu(struct task_struct *p, int prev_cpu,
if (!(available_idle_cpu(best_energy_cpu) &&
walt_get_idle_exit_latency(cpu_rq(best_energy_cpu)) <= 1) &&
(prev_energy != ULONG_MAX) && (best_energy_cpu != prev_cpu) &&
((prev_energy - best_energy) <= prev_energy >> 4) &&
((prev_energy - best_energy) <= prev_energy >> 5) &&
(capacity_orig_of(prev_cpu) <= capacity_orig_of(start_cpu)))
best_energy_cpu = prev_cpu;