Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/arch/parisc/kernel/
H A 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 …]
/OK3568_Linux_fs/kernel/arch/arm/kernel/
H A Dtopology.c187 struct cpu_topology *cpuid_topo = &cpu_topology[cpuid]; in store_cpu_topology() local
190 if (cpuid_topo->package_id != -1) in store_cpu_topology()
204 cpuid_topo->thread_id = MPIDR_AFFINITY_LEVEL(mpidr, 0); in store_cpu_topology()
205 cpuid_topo->core_id = MPIDR_AFFINITY_LEVEL(mpidr, 1); in store_cpu_topology()
206 cpuid_topo->package_id = MPIDR_AFFINITY_LEVEL(mpidr, 2); in store_cpu_topology()
209 cpuid_topo->thread_id = -1; in store_cpu_topology()
210 cpuid_topo->core_id = MPIDR_AFFINITY_LEVEL(mpidr, 0); in store_cpu_topology()
211 cpuid_topo->package_id = MPIDR_AFFINITY_LEVEL(mpidr, 1); in store_cpu_topology()
219 cpuid_topo->thread_id = -1; in store_cpu_topology()
220 cpuid_topo->core_id = 0; in store_cpu_topology()
[all …]
/OK3568_Linux_fs/kernel/drivers/base/
H A Darch_topology.c522 struct cpu_topology *cpu_topo, *cpuid_topo = &cpu_topology[cpuid]; in update_siblings_masks() local
529 if (cpu_topo->llc_id != -1 && cpuid_topo->llc_id == cpu_topo->llc_id) { in update_siblings_masks()
530 cpumask_set_cpu(cpu, &cpuid_topo->llc_sibling); in update_siblings_masks()
534 if (cpuid_topo->package_id != cpu_topo->package_id) in update_siblings_masks()
538 cpumask_set_cpu(cpu, &cpuid_topo->core_sibling); in update_siblings_masks()
540 if (cpuid_topo->core_id != cpu_topo->core_id) in update_siblings_masks()
544 cpumask_set_cpu(cpu, &cpuid_topo->thread_sibling); in update_siblings_masks()
613 struct cpu_topology *cpuid_topo = &cpu_topology[cpuid]; in store_cpu_topology() local
615 if (cpuid_topo->package_id != -1) in store_cpu_topology()
618 cpuid_topo->thread_id = -1; in store_cpu_topology()
[all …]