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