Commit f70ff127 authored by Sudeep Holla's avatar Sudeep Holla Committed by Will Deacon

arm64: topology: rename llc_siblings to align with other struct members

Similar to core_sibling and thread_sibling, it's better to align and
rename llc_siblings to llc_sibling.

Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Tested-by: default avatarGanapatrao Kulkarni <ganapatrao.kulkarni@cavium.com>
Tested-by: default avatarHanjun Guo <hanjun.guo@linaro.org>
Signed-off-by: default avatarSudeep Holla <sudeep.holla@arm.com>
Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
parent 7f9545aa
...@@ -11,7 +11,7 @@ struct cpu_topology { ...@@ -11,7 +11,7 @@ struct cpu_topology {
int llc_id; int llc_id;
cpumask_t thread_sibling; cpumask_t thread_sibling;
cpumask_t core_sibling; cpumask_t core_sibling;
cpumask_t llc_siblings; cpumask_t llc_sibling;
}; };
extern struct cpu_topology cpu_topology[NR_CPUS]; extern struct cpu_topology cpu_topology[NR_CPUS];
...@@ -20,7 +20,7 @@ extern struct cpu_topology cpu_topology[NR_CPUS]; ...@@ -20,7 +20,7 @@ extern struct cpu_topology cpu_topology[NR_CPUS];
#define topology_core_id(cpu) (cpu_topology[cpu].core_id) #define topology_core_id(cpu) (cpu_topology[cpu].core_id)
#define topology_core_cpumask(cpu) (&cpu_topology[cpu].core_sibling) #define topology_core_cpumask(cpu) (&cpu_topology[cpu].core_sibling)
#define topology_sibling_cpumask(cpu) (&cpu_topology[cpu].thread_sibling) #define topology_sibling_cpumask(cpu) (&cpu_topology[cpu].thread_sibling)
#define topology_llc_cpumask(cpu) (&cpu_topology[cpu].llc_siblings) #define topology_llc_cpumask(cpu) (&cpu_topology[cpu].llc_sibling)
void init_cpu_topology(void); void init_cpu_topology(void);
void store_cpu_topology(unsigned int cpuid); void store_cpu_topology(unsigned int cpuid);
......
...@@ -218,8 +218,8 @@ const struct cpumask *cpu_coregroup_mask(int cpu) ...@@ -218,8 +218,8 @@ const struct cpumask *cpu_coregroup_mask(int cpu)
const cpumask_t *core_mask = &cpu_topology[cpu].core_sibling; const cpumask_t *core_mask = &cpu_topology[cpu].core_sibling;
if (cpu_topology[cpu].llc_id != -1) { if (cpu_topology[cpu].llc_id != -1) {
if (cpumask_subset(&cpu_topology[cpu].llc_siblings, core_mask)) if (cpumask_subset(&cpu_topology[cpu].llc_sibling, core_mask))
core_mask = &cpu_topology[cpu].llc_siblings; core_mask = &cpu_topology[cpu].llc_sibling;
} }
return core_mask; return core_mask;
...@@ -235,8 +235,8 @@ static void update_siblings_masks(unsigned int cpuid) ...@@ -235,8 +235,8 @@ static void update_siblings_masks(unsigned int cpuid)
cpu_topo = &cpu_topology[cpu]; cpu_topo = &cpu_topology[cpu];
if (cpuid_topo->llc_id == cpu_topo->llc_id) { if (cpuid_topo->llc_id == cpu_topo->llc_id) {
cpumask_set_cpu(cpu, &cpuid_topo->llc_siblings); cpumask_set_cpu(cpu, &cpuid_topo->llc_sibling);
cpumask_set_cpu(cpuid, &cpu_topo->llc_siblings); cpumask_set_cpu(cpuid, &cpu_topo->llc_sibling);
} }
if (cpuid_topo->package_id != cpu_topo->package_id) if (cpuid_topo->package_id != cpu_topo->package_id)
...@@ -295,8 +295,8 @@ static void clear_cpu_topology(int cpu) ...@@ -295,8 +295,8 @@ static void clear_cpu_topology(int cpu)
{ {
struct cpu_topology *cpu_topo = &cpu_topology[cpu]; struct cpu_topology *cpu_topo = &cpu_topology[cpu];
cpumask_clear(&cpu_topo->llc_siblings); cpumask_clear(&cpu_topo->llc_sibling);
cpumask_set_cpu(cpu, &cpu_topo->llc_siblings); cpumask_set_cpu(cpu, &cpu_topo->llc_sibling);
cpumask_clear(&cpu_topo->core_sibling); cpumask_clear(&cpu_topo->core_sibling);
cpumask_set_cpu(cpu, &cpu_topo->core_sibling); cpumask_set_cpu(cpu, &cpu_topo->core_sibling);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment