From 7054cae73f2d0b0de8c076d28aa9a8926cfb528e Mon Sep 17 00:00:00 2001 From: Sai Harshini Nimmala Date: Wed, 3 Nov 2021 22:46:44 -0700 Subject: [PATCH] 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 --- kernel/sched/walt/walt.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/sched/walt/walt.c b/kernel/sched/walt/walt.c index 8b6677c90ee2..cc800283f281 100644 --- a/kernel/sched/walt/walt.c +++ b/kernel/sched/walt/walt.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include @@ -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);