sched/walt: Fix frequent frequency updates

As a side effect of commit f64fafbec582dd46169fba528cad2341c0c2d906
the check to skip frequency update if the same frequency as
the previous frequency is being applied, got removed at the point of
update.
Restore this check at the appropriate place.

Change-Id: I7aee7f84f0a64747b01ac31c2fdcbb4440908deb
Signed-off-by: Sai Harshini Nimmala <quic_snimmala@quicinc.com>
This commit is contained in:
Sai Harshini Nimmala 2021-12-06 16:47:43 -08:00 committed by Rishabh Bhatnagar
parent a58c301c82
commit e2bc168ffb

View File

@ -239,7 +239,7 @@ static unsigned int get_next_freq(struct waltgov_policy *wg_policy,
if (wg_policy->cached_raw_freq && freq == wg_policy->cached_raw_freq &&
!wg_policy->need_freq_update)
return wg_policy->next_freq;
return 0;
wg_policy->need_freq_update = false;