sched/walt: Ensure driving cpu is used for region3

Currently, wg_cpu is used, however, this is incorrect, as the driving
CPU should be used when evaluating region3 conditions.

Change-Id: I4f86ec6021b718e35d84f589dc9be68a53ab9523
Signed-off-by: Shaleen Agrawal <quic_shalagra@quicinc.com>
This commit is contained in:
Shaleen Agrawal 2022-06-06 15:33:55 -07:00 committed by Rishabh Bhatnagar
parent c42b241161
commit f8314d13b2

View File

@ -247,7 +247,7 @@ static unsigned int get_next_freq(struct waltgov_policy *wg_policy,
unsigned int freq, raw_freq, final_freq;
struct waltgov_cpu *wg_driv_cpu = &per_cpu(waltgov_cpu, wg_policy->driving_cpu);
raw_freq = walt_map_util_freq(util, wg_policy, max, wg_cpu->cpu);
raw_freq = walt_map_util_freq(util, wg_policy, max, wg_driv_cpu->cpu);
freq = raw_freq;
if (wg_policy->tunables->adaptive_high_freq) {