mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 11:37:06 +02:00
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:
parent
a58c301c82
commit
e2bc168ffb
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user