Home
last modified time | relevance | path

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

/Linux-v5.4/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-v5.4/arch/arm64/kernel/
Dtopology.c26 struct cpu_topology *cpuid_topo = &cpu_topology[cpuid]; in store_cpu_topology() local
29 if (cpuid_topo->package_id != -1) in store_cpu_topology()
41 cpuid_topo->thread_id = MPIDR_AFFINITY_LEVEL(mpidr, 0); in store_cpu_topology()
42 cpuid_topo->core_id = MPIDR_AFFINITY_LEVEL(mpidr, 1); in store_cpu_topology()
43 cpuid_topo->package_id = MPIDR_AFFINITY_LEVEL(mpidr, 2) | in store_cpu_topology()
47 cpuid_topo->thread_id = -1; in store_cpu_topology()
48 cpuid_topo->core_id = MPIDR_AFFINITY_LEVEL(mpidr, 0); in store_cpu_topology()
49 cpuid_topo->package_id = MPIDR_AFFINITY_LEVEL(mpidr, 1) | in store_cpu_topology()
55 cpuid, cpuid_topo->package_id, cpuid_topo->core_id, in store_cpu_topology()
56 cpuid_topo->thread_id, mpidr); in store_cpu_topology()
/Linux-v5.4/arch/arm/kernel/
Dtopology.c196 struct cpu_topology *cpuid_topo = &cpu_topology[cpuid]; in store_cpu_topology() local
200 if (cpuid_topo->core_id != -1) in store_cpu_topology()
214 cpuid_topo->thread_id = MPIDR_AFFINITY_LEVEL(mpidr, 0); in store_cpu_topology()
215 cpuid_topo->core_id = MPIDR_AFFINITY_LEVEL(mpidr, 1); in store_cpu_topology()
216 cpuid_topo->package_id = MPIDR_AFFINITY_LEVEL(mpidr, 2); in store_cpu_topology()
219 cpuid_topo->thread_id = -1; in store_cpu_topology()
220 cpuid_topo->core_id = MPIDR_AFFINITY_LEVEL(mpidr, 0); in store_cpu_topology()
221 cpuid_topo->package_id = MPIDR_AFFINITY_LEVEL(mpidr, 1); in store_cpu_topology()
229 cpuid_topo->thread_id = -1; in store_cpu_topology()
230 cpuid_topo->core_id = 0; in store_cpu_topology()
[all …]
/Linux-v5.4/drivers/base/
Darch_topology.c453 struct cpu_topology *cpu_topo, *cpuid_topo = &cpu_topology[cpuid]; in update_siblings_masks() local
460 if (cpuid_topo->llc_id == cpu_topo->llc_id) { in update_siblings_masks()
461 cpumask_set_cpu(cpu, &cpuid_topo->llc_sibling); in update_siblings_masks()
465 if (cpuid_topo->package_id != cpu_topo->package_id) in update_siblings_masks()
469 cpumask_set_cpu(cpu, &cpuid_topo->core_sibling); in update_siblings_masks()
471 if (cpuid_topo->core_id != cpu_topo->core_id) in update_siblings_masks()
475 cpumask_set_cpu(cpu, &cpuid_topo->thread_sibling); in update_siblings_masks()