mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
sched/walt: Fix SCHED_CPUFREQ_CONTINUE for hotplug cases
cluster->cpus might include hotplugged cores and as a result we would end up sending incorrect flag to cpufreq. Fix the bug by checking cpu_online_mask. Change-Id: I39fa9296aac72604c91470a8ffe0a5b9efbaac1f Signed-off-by: Puja Gupta <pujag@codeaurora.org>
This commit is contained in:
parent
4cec0cd668
commit
a3f8a97e46
@ -3083,9 +3083,14 @@ void walt_irq_work(struct irq_work *irq_work)
|
||||
}
|
||||
|
||||
for_each_sched_cluster(cluster) {
|
||||
unsigned int num_cpus = cpumask_weight(&cluster->cpus), i = 1;
|
||||
cpumask_t cluster_online_cpus;
|
||||
unsigned int num_cpus, i = 1;
|
||||
|
||||
for_each_cpu(cpu, &cluster->cpus) {
|
||||
cpumask_and(&cluster_online_cpus, &cluster->cpus,
|
||||
cpu_online_mask);
|
||||
num_cpus = cpumask_weight(&cluster_online_cpus);
|
||||
|
||||
for_each_cpu(cpu, &cluster_online_cpus) {
|
||||
if (i == num_cpus)
|
||||
cpufreq_update_util(cpu_rq(cpu), flag);
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user