Searched refs:cpu_topology (Results 1 – 7 of 7) sorted by relevance
/arch/arm64/include/asm/ |
D | topology.h | 6 struct cpu_topology { struct 14 extern struct cpu_topology cpu_topology[NR_CPUS]; argument 16 #define topology_physical_package_id(cpu) (cpu_topology[cpu].cluster_id) 17 #define topology_core_id(cpu) (cpu_topology[cpu].core_id) 18 #define topology_core_cpumask(cpu) (&cpu_topology[cpu].core_sibling) 19 #define topology_thread_cpumask(cpu) (&cpu_topology[cpu].thread_sibling)
|
/arch/s390/include/asm/ |
D | topology.h | 19 extern struct cpu_topology_s390 cpu_topology[NR_CPUS]; 21 #define topology_physical_package_id(cpu) (cpu_topology[cpu].socket_id) 22 #define topology_core_id(cpu) (cpu_topology[cpu].core_id) 23 #define topology_core_cpumask(cpu) (&cpu_topology[cpu].core_mask) 24 #define topology_book_id(cpu) (cpu_topology[cpu].book_id) 25 #define topology_book_cpumask(cpu) (&cpu_topology[cpu].book_mask)
|
/arch/arm/include/asm/ |
D | topology.h | 17 extern struct cputopo_arm cpu_topology[NR_CPUS]; 19 #define topology_physical_package_id(cpu) (cpu_topology[cpu].socket_id) 20 #define topology_core_id(cpu) (cpu_topology[cpu].core_id) 21 #define topology_core_cpumask(cpu) (&cpu_topology[cpu].core_sibling) 22 #define topology_thread_cpumask(cpu) (&cpu_topology[cpu].thread_sibling)
|
/arch/arm64/kernel/ |
D | topology.c | 84 cpu_topology[cpu].cluster_id = cluster_id; in parse_core() 85 cpu_topology[cpu].core_id = core_id; in parse_core() 86 cpu_topology[cpu].thread_id = i; in parse_core() 106 cpu_topology[cpu].cluster_id = cluster_id; in parse_core() 107 cpu_topology[cpu].core_id = core_id; in parse_core() 213 if (cpu_topology[cpu].cluster_id == -1) in parse_dt_topology() 226 struct cpu_topology cpu_topology[NR_CPUS]; variable 227 EXPORT_SYMBOL_GPL(cpu_topology); 258 return &cpu_topology[cpu].core_sibling; in cpu_coregroup_mask() 292 struct cpu_topology *cpu_topo, *cpuid_topo = &cpu_topology[cpuid]; in update_siblings_masks() [all …]
|
/arch/arm/kernel/ |
D | topology.c | 192 struct cputopo_arm cpu_topology[NR_CPUS]; variable 193 EXPORT_SYMBOL_GPL(cpu_topology); 197 return &cpu_topology[cpu].core_sibling; in cpu_coregroup_mask() 206 return &cpu_topology[cpu].thread_sibling; in cpu_corepower_mask() 211 struct cputopo_arm *cpu_topo, *cpuid_topo = &cpu_topology[cpuid]; in update_siblings_masks() 216 cpu_topo = &cpu_topology[cpu]; in update_siblings_masks() 242 struct cputopo_arm *cpuid_topo = &cpu_topology[cpuid]; in store_cpu_topology() 285 cpuid, cpu_topology[cpuid].thread_id, in store_cpu_topology() 286 cpu_topology[cpuid].core_id, in store_cpu_topology() 287 cpu_topology[cpuid].socket_id, mpidr); in store_cpu_topology() [all …]
|
/arch/s390/kernel/ |
D | topology.c | 45 struct cpu_topology_s390 cpu_topology[NR_CPUS]; variable 46 EXPORT_SYMBOL_GPL(cpu_topology); 78 cpu_topology[lcpu].book_id = book->id; in add_cpus_to_mask() 80 cpu_topology[lcpu].core_id = rcpu; in add_cpus_to_mask() 82 cpu_topology[lcpu].socket_id = rcpu; in add_cpus_to_mask() 85 cpu_topology[lcpu].socket_id = socket->id; in add_cpus_to_mask() 234 cpu_topology[cpu].core_mask = cpu_group_map(&socket_info, cpu); in update_cpu_masks() 235 cpu_topology[cpu].book_mask = cpu_group_map(&book_info, cpu); in update_cpu_masks() 237 cpu_topology[cpu].core_id = cpu; in update_cpu_masks() 238 cpu_topology[cpu].socket_id = cpu; in update_cpu_masks() [all …]
|
/arch/arc/kernel/ |
D | setup.c | 467 static DEFINE_PER_CPU(struct cpu, cpu_topology); 474 register_cpu(&per_cpu(cpu_topology, cpu), cpu); in topology_init()
|