Searched refs:cpu_topology (Results 1 – 9 of 9) sorted by relevance
/linux-4.1.27/arch/arm64/kernel/ |
D | topology.c | 64 cpu_topology[cpu].cluster_id = cluster_id; in parse_core() 65 cpu_topology[cpu].core_id = core_id; in parse_core() 66 cpu_topology[cpu].thread_id = i; in parse_core() 86 cpu_topology[cpu].cluster_id = cluster_id; in parse_core() 87 cpu_topology[cpu].core_id = core_id; in parse_core() 193 if (cpu_topology[cpu].cluster_id == -1) in parse_dt_topology() 206 struct cpu_topology cpu_topology[NR_CPUS]; variable 207 EXPORT_SYMBOL_GPL(cpu_topology); 211 return &cpu_topology[cpu].core_sibling; in cpu_coregroup_mask() 216 struct cpu_topology *cpu_topo, *cpuid_topo = &cpu_topology[cpuid]; in update_siblings_masks() [all …]
|
/linux-4.1.27/arch/arm64/include/asm/ |
D | topology.h | 8 struct cpu_topology { struct 16 extern struct cpu_topology cpu_topology[NR_CPUS]; argument 18 #define topology_physical_package_id(cpu) (cpu_topology[cpu].cluster_id) 19 #define topology_core_id(cpu) (cpu_topology[cpu].core_id) 20 #define topology_core_cpumask(cpu) (&cpu_topology[cpu].core_sibling) 21 #define topology_thread_cpumask(cpu) (&cpu_topology[cpu].thread_sibling)
|
/linux-4.1.27/arch/s390/include/asm/ |
D | topology.h | 21 DECLARE_PER_CPU(struct cpu_topology_s390, cpu_topology); 23 #define topology_physical_package_id(cpu) (per_cpu(cpu_topology, cpu).socket_id) 24 #define topology_thread_id(cpu) (per_cpu(cpu_topology, cpu).thread_id) 25 #define topology_thread_cpumask(cpu) (&per_cpu(cpu_topology, cpu).thread_mask) 26 #define topology_core_id(cpu) (per_cpu(cpu_topology, cpu).core_id) 27 #define topology_core_cpumask(cpu) (&per_cpu(cpu_topology, cpu).core_mask) 28 #define topology_book_id(cpu) (per_cpu(cpu_topology, cpu).book_id) 29 #define topology_book_cpumask(cpu) (&per_cpu(cpu_topology, cpu).book_mask)
|
/linux-4.1.27/arch/arm/kernel/ |
D | topology.c | 180 struct cputopo_arm cpu_topology[NR_CPUS]; variable 181 EXPORT_SYMBOL_GPL(cpu_topology); 185 return &cpu_topology[cpu].core_sibling; in cpu_coregroup_mask() 194 return &cpu_topology[cpu].thread_sibling; in cpu_corepower_mask() 199 struct cputopo_arm *cpu_topo, *cpuid_topo = &cpu_topology[cpuid]; in update_siblings_masks() 204 cpu_topo = &cpu_topology[cpu]; in update_siblings_masks() 230 struct cputopo_arm *cpuid_topo = &cpu_topology[cpuid]; in store_cpu_topology() 273 cpuid, cpu_topology[cpuid].thread_id, in store_cpu_topology() 274 cpu_topology[cpuid].core_id, in store_cpu_topology() 275 cpu_topology[cpuid].socket_id, mpidr); in store_cpu_topology() [all …]
|
/linux-4.1.27/arch/arm/include/asm/ |
D | topology.h | 16 extern struct cputopo_arm cpu_topology[NR_CPUS]; 18 #define topology_physical_package_id(cpu) (cpu_topology[cpu].socket_id) 19 #define topology_core_id(cpu) (cpu_topology[cpu].core_id) 20 #define topology_core_cpumask(cpu) (&cpu_topology[cpu].core_sibling) 21 #define topology_thread_cpumask(cpu) (&cpu_topology[cpu].thread_sibling)
|
/linux-4.1.27/arch/s390/kernel/ |
D | topology.c | 45 DEFINE_PER_CPU(struct cpu_topology_s390, cpu_topology); 46 EXPORT_PER_CPU_SYMBOL_GPL(cpu_topology); 93 per_cpu(cpu_topology, lcpu + i).book_id = book->id; in add_cpus_to_mask() 94 per_cpu(cpu_topology, lcpu + i).core_id = rcore; in add_cpus_to_mask() 95 per_cpu(cpu_topology, lcpu + i).thread_id = lcpu + i; in add_cpus_to_mask() 99 per_cpu(cpu_topology, lcpu + i).socket_id = rcore; in add_cpus_to_mask() 101 per_cpu(cpu_topology, lcpu + i).socket_id = socket->id; in add_cpus_to_mask() 252 per_cpu(cpu_topology, cpu).thread_mask = cpu_thread_map(cpu); in update_cpu_masks() 253 per_cpu(cpu_topology, cpu).core_mask = cpu_group_map(&socket_info, cpu); in update_cpu_masks() 254 per_cpu(cpu_topology, cpu).book_mask = cpu_group_map(&book_info, cpu); in update_cpu_masks() [all …]
|
/linux-4.1.27/arch/arc/kernel/ |
D | setup.c | 473 static DEFINE_PER_CPU(struct cpu, cpu_topology); 480 register_cpu(&per_cpu(cpu_topology, cpu), cpu); in topology_init()
|
/linux-4.1.27/tools/power/x86/turbostat/ |
D | turbostat.c | 2737 struct cpu_topology { in topology_probe() struct 2752 cpus = calloc(1, (topo.max_cpu_num + 1) * sizeof(struct cpu_topology)); in topology_probe()
|
/linux-4.1.27/tools/perf/util/ |
D | header.c | 1859 FEAT_OPF(HEADER_CPU_TOPOLOGY, cpu_topology),
|