Home
last modified time | relevance | path

Searched refs:cpuid_topo (Results 1 – 3 of 3) sorted by relevance

/Linux-v4.19/arch/parisc/kernel/
Dtopology.c32 struct cputopo_parisc *cpu_topo, *cpuid_topo = &cpu_topology[cpuid]; in update_siblings_masks() local
39 if (cpuid_topo->socket_id != cpu_topo->socket_id) in update_siblings_masks()
44 cpumask_set_cpu(cpu, &cpuid_topo->core_sibling); in update_siblings_masks()
46 if (cpuid_topo->core_id != cpu_topo->core_id) in update_siblings_masks()
51 cpumask_set_cpu(cpu, &cpuid_topo->thread_sibling); in update_siblings_masks()
65 struct cputopo_parisc *cpuid_topo = &cpu_topology[cpuid]; in store_cpu_topology() local
71 if (cpuid_topo->core_id != -1) in store_cpu_topology()
75 cpuid_topo->thread_id = -1; in store_cpu_topology()
76 cpuid_topo->core_id = 0; in store_cpu_topology()
86 cpuid_topo->core_id = cpu_topology[cpu].core_id; in store_cpu_topology()
[all …]
/Linux-v4.19/arch/arm/kernel/
Dtopology.c208 struct cputopo_arm *cpu_topo, *cpuid_topo = &cpu_topology[cpuid]; in update_siblings_masks() local
215 if (cpuid_topo->socket_id != cpu_topo->socket_id) in update_siblings_masks()
220 cpumask_set_cpu(cpu, &cpuid_topo->core_sibling); in update_siblings_masks()
222 if (cpuid_topo->core_id != cpu_topo->core_id) in update_siblings_masks()
227 cpumask_set_cpu(cpu, &cpuid_topo->thread_sibling); in update_siblings_masks()
239 struct cputopo_arm *cpuid_topo = &cpu_topology[cpuid]; in store_cpu_topology() local
243 if (cpuid_topo->core_id != -1) in store_cpu_topology()
257 cpuid_topo->thread_id = MPIDR_AFFINITY_LEVEL(mpidr, 0); in store_cpu_topology()
258 cpuid_topo->core_id = MPIDR_AFFINITY_LEVEL(mpidr, 1); in store_cpu_topology()
259 cpuid_topo->socket_id = MPIDR_AFFINITY_LEVEL(mpidr, 2); in store_cpu_topology()
[all …]
/Linux-v4.19/arch/arm64/kernel/
Dtopology.c235 struct cpu_topology *cpu_topo, *cpuid_topo = &cpu_topology[cpuid]; in update_siblings_masks() local
242 if (cpuid_topo->llc_id == cpu_topo->llc_id) { in update_siblings_masks()
243 cpumask_set_cpu(cpu, &cpuid_topo->llc_sibling); in update_siblings_masks()
247 if (cpuid_topo->package_id != cpu_topo->package_id) in update_siblings_masks()
251 cpumask_set_cpu(cpu, &cpuid_topo->core_sibling); in update_siblings_masks()
253 if (cpuid_topo->core_id != cpu_topo->core_id) in update_siblings_masks()
257 cpumask_set_cpu(cpu, &cpuid_topo->thread_sibling); in update_siblings_masks()
263 struct cpu_topology *cpuid_topo = &cpu_topology[cpuid]; in store_cpu_topology() local
266 if (cpuid_topo->package_id != -1) in store_cpu_topology()
278 cpuid_topo->thread_id = MPIDR_AFFINITY_LEVEL(mpidr, 0); in store_cpu_topology()
[all …]