sched/walt: Track wake_q length using newer parameter

There is a revised member to track the wake_q length upstream.

Change-Id: Ie1b9619be3616d4749f5fa2da8584f5fd4b45a58
Signed-off-by: Shaleen Agrawal <shalagra@codeaurora.org>
This commit is contained in:
Shaleen Agrawal 2021-02-08 22:34:55 -08:00 committed by Rishabh Bhatnagar
parent 0a5adea340
commit 9b64c2a55e

View File

@ -662,11 +662,16 @@ static void
walt_select_task_rq_fair(void *unused, struct task_struct *p, int prev_cpu,
int sd_flag, int wake_flags, int *target_cpu)
{
int sync = (wake_flags & WF_SYNC) && !(current->flags & PF_EXITING);
int sibling_count_hint = 1;
int sync;
int sibling_count_hint;
if (static_branch_unlikely(&walt_disabled))
return;
sync = (wake_flags & WF_SYNC) && !(current->flags & PF_EXITING);
sibling_count_hint = p->wake_q_count;
p->wake_q_count = 0;
*target_cpu = walt_find_energy_efficient_cpu(p, prev_cpu, sync, sibling_count_hint);
if (unlikely(*target_cpu < 0))
*target_cpu = prev_cpu;