Merge "sched/walt:Do not use package id while setting up clusters"

This commit is contained in:
qctecmdr 2022-10-25 14:28:10 -07:00 committed by Gerrit - the friendly Code Review server
commit b2a9fed519

View File

@ -2641,13 +2641,13 @@ static void walt_get_possible_siblings(int cpuid, struct cpumask *cluster_cpus)
int cpu;
struct cpu_topology *cpu_topo, *cpuid_topo = &cpu_topology[cpuid];
if (cpuid_topo->package_id == -1)
if (cpuid_topo->cluster_id == -1)
return;
for_each_possible_cpu(cpu) {
cpu_topo = &cpu_topology[cpu];
if (cpuid_topo->package_id != cpu_topo->package_id)
if (cpuid_topo->cluster_id != cpu_topo->cluster_id)
continue;
cpumask_set_cpu(cpu, cluster_cpus);
}