sched: let sched_boost take precedence over sched_restrict_cluster_spill
When sched_restrict_cluster_spill knob is enabled, RT tasks are restricted to lower power cluster. This knob also restricts inter cluster no-hz kicks. Ignore this knob setting when sched_boost is enabled so that tasks are placed on CPUs with highest spare capacity. CRs-Fixed: 968852 Change-Id: I01b3fc10b39dc834a733d64c2ee29c308d7ff730 Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
This commit is contained in:
parent
6d742ce87b
commit
58d411413f
2 changed files with 3 additions and 2 deletions
|
@ -10088,7 +10088,7 @@ static inline int _nohz_kick_needed_hmp(struct rq *rq, int cpu, int *type)
|
|||
if (rq->nr_running < 2)
|
||||
return 0;
|
||||
|
||||
if (!sysctl_sched_restrict_cluster_spill)
|
||||
if (!sysctl_sched_restrict_cluster_spill || sched_boost())
|
||||
return 1;
|
||||
|
||||
if (hmp_capable() && cpu_max_possible_capacity(cpu) ==
|
||||
|
|
|
@ -1673,7 +1673,8 @@ static int find_lowest_rq_hmp(struct task_struct *task)
|
|||
int prev_cpu = task_cpu(task);
|
||||
u64 cpu_load, min_load = ULLONG_MAX;
|
||||
int i;
|
||||
int restrict_cluster = sysctl_sched_restrict_cluster_spill;
|
||||
int restrict_cluster = sched_boost() ? 0 :
|
||||
sysctl_sched_restrict_cluster_spill;
|
||||
|
||||
/* Make sure the mask is initialized first */
|
||||
if (unlikely(!lowest_mask))
|
||||
|
|
Loading…
Add table
Reference in a new issue