sched/walt: disable cpu packing when current freq is high

This in addition to other criteria already present in the code.

Change-Id: Ief3a21eb159bed8eb724427c0acca327a3cbb272
Signed-off-by: Abhijeet Dharmapurikar <quic_adharmap@quicinc.com>
This commit is contained in:
Abhijeet Dharmapurikar 2022-08-26 16:31:59 -07:00 committed by Sai Harshini Nimmala
parent e3e14e56fb
commit 3abcd9269f

View File

@ -1048,6 +1048,10 @@ static inline int walt_find_and_choose_cluster_packing_cpu(int start_cpu, struct
if (task_util(p) >= sysctl_sched_idle_enough)
return -1;
/* don't pack if running at a freq higher than 43.9pct of its fmax */
if (arch_scale_freq_capacity(packing_cpu) > 450)
return -1;
/* the packing cpu can be used, so pack! */
return packing_cpu;
}