sched/walt: Clear scale_frequency_data during init

Change the FIE to use frequency scaling information provided by
cpufreq driver as opposed to the higher priority arch specific counters.

This is done by resetting the struct scale_freq_data for each CPU which
holds the callback information specific to the HW counters, thus forcing
the FIE to revert to default, the cpufreq driver.

Change-Id: I23f508f9859be6a35155e5d000caf1c0b19f5584
Signed-off-by: Sai Harshini Nimmala <snimmala@codeaurora.org>
This commit is contained in:
Sai Harshini Nimmala 2021-11-03 22:46:44 -07:00 committed by Rishabh Bhatnagar
parent 9c062eae64
commit 7054cae73f

View File

@ -13,6 +13,7 @@
#include <linux/ktime.h>
#include <linux/qcom-cpufreq-hw.h>
#include <linux/cpumask.h>
#include <linux/arch_topology.h>
#include <trace/hooks/sched.h>
#include <trace/hooks/cpufreq.h>
@ -4307,6 +4308,8 @@ static void walt_init(struct work_struct *work)
static_key_disable(&sched_feat_keys[i]);
sysctl_sched_features &= ~(1UL << i);
}
topology_clear_scale_freq_source(SCALE_FREQ_SOURCE_ARCH, cpu_online_mask);
}
static DECLARE_WORK(walt_init_work, walt_init);