mirror of
https://github.com/torvalds/linux.git
synced 2026-08-01 12:11:59 +02:00
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:
parent
e3e14e56fb
commit
3abcd9269f
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user